我运行一个Web应用程序,我剥离到最大,以避免高tcpsndbuf值。 tcpsndbuf仍然会在几天之后到达非常非常小的stream量。 我最初认为这是一个应用程序容器问题,如本主题中所述 。 tcpsndbuf值上升和上升。 看来缓冲值从来没有完全释放。 因此,它不断增加,直到突破极限,并要求它100%的CPU节stream。 但是,排除不同的来源,如hibernateconfiguration,mysql驱动程序错误,我想集中在由Plesk / Power Panel和Apache Proxy_modpipe理的openvz。 我相信的原因是,在进程列表(Parallels Power Panel,Processes)中列出了/usr/sbin/apache2 -k start的大量进程, 我使用proxy_mod将端口80路由到位于不同端口但是相同主机的应用程序服务器。 我怎样才能详细分析套接字状态? 例如什么缓冲区被哪个应用程序locking,何时被分配? 我可以看到proxy_mod连接吗? 这种types的数据是可用的吗? 任何其他提示tcpsndbuf提示最大的CPU负载非常值得欢迎。
我是一个Web开发人员和一个项目,我需要在不使用端口的情况下运行tomcat和nodejs。 我在httpd中看到了一些关于代理模块的文章,所以我创build了两个虚拟主机: <VirtualHost *:80> ServerName localhost # ErrorLog "logs/tomcat-error.log" ProxyPreserveHost On ProxyPass /tomcat http://localhost:8080/ ProxyPassReverse /tomcat http://localhost:8080/ </VirtualHost> <VirtualHost *:80> ServerName localhost # ErrorLog "logs/nodejs-error.log" ProxyPreserveHost On ProxyPass /nodejs http://localhost:8000/ ProxyPassReverse /nodejs http://localhost:8000/ </VirtualHost> 当我尝试访问localhost / nodejs或localhost / tomcat我得到一个未find错误。 有人能解释我为什么吗? 谢谢 ;-)
需要提供一个匿名只读访问svn存储库 AFAIK,haproxy不能自己在后台validation。 haproxy有一个基本authentication的工作configuration。 如何将其迁移到NTLM? 主要的问题是我们不能简单地添加一个静态头,因为质询 – 响应机制。 frontend svn_f bind *:8000 mode http default_backend svn_b acl valid_method method GET HEAD OPTIONS PROPFIND REPORT acl valid_path path_beg /svn/myrepo http-request deny unless valid_method valid_path backend svn_b reqadd Authorization:\ Basic\ xxxxxxxxxxxxxxxxxxxx server svn_server 192.168.2.1:443 ssl verify none 也许Apache可以做到这一点? 试过这个,但它不起作用: SSLProxyEngine on <VirtualHost *:8000> KeepAlive on ProxyPass / https://user:[email protected]/ […]
build立 ServerA运行HTTPS站点的Apache,需要连接一个客户端证书。 请参阅以下有关/etc/apache2/sites-available/secure.site.conf和/etc/apache2/mods-available/ssl.conf的信息 ClientA :使用客户端证书连接到ServerA的浏览器 ServerB上的代理 :Apache充当转发代理,它应该能够使用客户端证书和服务器连接到ServerB,请参阅以下有关/etc/apache2/sites-available/forward.proxy.conf的信息 ClientB :使用ServerB上的代理的浏览器可以访问ServerA上的内容,而不需要客户端证书。 状态 工作:客户端A -OK->服务器A 不工作:客户端B -OK->服务器B上的代理服务器-X->服务器A 替代解决scheme我发现SEnginx应该能够完成这项工作 http://www.senginx.org/en/index.php/Proxy_HTTPS_Client_Certificate 这是阿帕奇无法做到的情况下的后备… 日志文件 /var/log/apache2/proxy_8004_access.log all start with [Wed Nov 18 23:42:00.888597 2015] [proxy:debug] [pid 4374:tid 140546074822528] […] proxy_util.c(1771): AH00925: initializing worker proxy:forward shared […] proxy_util.c(1813): AH00927: initializing worker proxy:forward local […] proxy_util.c(1848): AH00930: initialized pool in child 4374 for (*) […]
是否有可能使apache(2.2)mod_proxy跟随上游redirect(http 301,302)? 通常会configuration一个反向代理,如: ProxyPass /foo http://upstream.example.com/bar ProxyPassReverse /foo http://upstream.example.com/bar 但是,如果upstream.example.com使用redirect进行响应,则客户端将通过upstream.example.com响应。 是否有可能使Apacheredirect直到获得正确的响应,然后才回应客户端?
我越来越mod_rewrite和双斜杠问题 你能帮我吗? # ProxyPass /balancer-manager ! RewriteRule /phoenix/^(.*) http://phoenixstagingappa.scan-shipping.com:8080/phoenix/$1 [P] ProxyPass /phoenix/ balancer://phoenix/ ProxyPassReverse /phoenix/ http://phoenixstagingappa.scan-shipping.com:8080/phoenix RedirectMatch 301 ^(.*) /phoenix/ RedirectMatch 303 ^/phoenix$ /phoenix/
我想要做的是: (1)互联网 – >域名 – > proxyip:端口 – > apache web服务器 (和) (2)apache web服务器 – > proxyip:port – > internet 看起来我已经设置(1)在dynamicDNS服务的帮助下,但如何做(2)? 而且我也有一个关于(1)的问题,因为我不知道它是否设置正确。 我使用快速用户:通过auth私人代理(也可以通过IPauthentication)与代理软件和dyn dns实用程序,频繁刷新ip。 它是否适用于(1)部分?
我有基于会话亲和力完美工作的apache2负载平衡。 stream量确实被定向到正确的Tomcat服务器。 我们正在尝试使用相同的服务器来为某些REST API调用提供服务。 这些调用没有会话,但是tomcat表示请求会保持某种状态,我们希望根据某个标头值将stream量redirect到同一个tomcat。 试图从Apache网站search和阅读文件,但还没有弄清楚。 我可以根据标题值进行负载平衡吗?
我们使用Apache和Jetty在防火墙后面安装组件。 一些行动需要一段时间(10-15分钟)。 Apache是代理,Jetty是一些机器上的代理目标。 一切工作正常采取less于5分钟的行动。 花费超过5分钟的操作失败,出现502代理错误。 我看过一些类似的主题,build议是定义超时和保持活动 – 两者都没有帮助。 我们的设置是: Windows 2012 R2 Apache 2.4.9 Jetty 7 最初我忘了提及apache和Jetty之间有防火墙。 在Apache的httpd.conf中我们有: ProxyPassMatch ^/([a-z0-9\-]+)/(.+)$ http://$1:3000/$2 timeout=3000 ttl=3000 Keepalive=On 我们希望timeout = 3000(3000秒)可以让Apache等待Jetty响应50分钟。 Keepalive和ttl正在尝试… 在Jetty上,我们正在调用一个简单的Groovy脚本,它只是坐等待很长时间。 如果等待时间很短,则按预期工作。 如果等待时间超过5分钟,我们会得到一个错误: Apache访问:(请求在17:25开始) xxx.xxx.xxx.xxx- – [02/Apr/2016:17:25:47 +0200] "GET /server/scripts/waitlong.groovy HTTP/1.1" 502 445 "-" 300509428 "-" "10.119.1.20" 10.119.1.20 3000 正如你所看到的持续时间大约是5分钟〜300509428,因此超时 – 它应该有10分钟的时间。 Apache错误:(请求在17:30超时) [Sat Apr 02 17:30:47.815050 […]
在Debian Linux上使用kernel 4.3.0(amd64)testingApache apache 2.4.18 mod_proxy时出现了很奇怪的问题。 我正在使用它作为转发代理: ProxyRequests On ProxyVia On ProxyBadHeader Ignore AllowCONNECT 1-65535 启动服务器后,一切正常。 但是,只有几个请求后,它停止服务请求: Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET http://www.google.de/. Reason: DNS lookup failure for: www.google.de 如果我尝试将主机(在示例中:www.google.de)添加到/ etc / hosts文件,则不会更改任何内容。 此外,名称parsing在服务器上正常工作,没有其他服务有任何问题。 LogLevel trace8显示与名称parsing相关的任何内容。 在我看来,这实际上与DNS无关。 这是什么? […]