Restore WebAppProxyServer.main method behavior