有没有办法通过mod代理logging请求? 我需要一种方法来debugging我的configuration,因为我似乎没有得到我应该的位置。 我需要以下信息: 传入请求的标题 什么是被送到代理目标 也许有一个相关的问题:有没有办法去掉一些头文件? 我尝试了以下内容: ProxyPass /proxy/other http://not.under.my.control/ <Location /proxy/other> ProxyPassReverse / RequestHeader unset Authorization </Location> 我真的不知道这是否正确,因为我什么也没有看到。
我试图让ProxyPass在我的OpenSUSE 13.1安装上工作。 我努力了: a2enmod proxy a2enmod proxy_http a2enmod proxy_connect systemctl restart apache2 systemctl reload apache2 (所有组合的陈述无济于事)。 我一直得到相同的错误: SERVER:/etc/apache2 # apache2ctl start -f /etc/apache2/httpd-proxy.conf AH00526: Syntax error on line 4 of /etc/apache2/httpd-proxy.conf: Invalid command 'ProxyPass', perhaps misspelled or defined by a module not included in the server configuration httpd-proxy.conf看起来像: <VirtualHost *:80> DocumentRoot /srv/www/subsite ServerName www.site.com/subsite ProxyPass […]
我设置了Apache来代理tomcat,但是当我定位页面时出现以下错误。 我有时会得到一个空白页面或503: [错误] [Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(2) failed in child 29611 for worker proxy:reverse [Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(1) failed in child 29611 for worker https://localhost:8443/ [Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(0) failed in child 29611 for worker http://localhost:8080/ 我在vm上configuration了两个虚拟主机,如下所示: [http主机] <VirtualHost *:80> ServerName www.mysite.net ServerAlias […]
我试图build立一个基本的虚拟主机代理所有请求test.local到一个WEBRick服务器我已经运行在127.0.0.1:8080同时保持所有请求本地主机去我的静态文件在/ var / www。 我正在运行Ubuntu 10.04。 我已经安装了libapache2-mod-proxy-html,并且使用了a2enmod代理来启用该模块。 我也有我的虚拟主机启用。 然而,每当我去test.local我总是得到一个神秘的500服务器错误,我所有的日志告诉我是: [Thu Mar 03 01:43:10 2011] [warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule. 这是我的虚拟主机: <VirtualHost test.local:80> LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so ServerAdmin webmaster@localhost ServerName […]
我在端口80上运行Apache 2.2.15,并想在本地端口8983上代理一个servlet引擎。我的安装程序在另一台服务器上运行,但已经转移到了CentOS 6机器上。 这不适用于新机器。 我的虚拟主机configuration: ProxyRequestclosures <代理*> 命令否认,允许 全部允许 </代理> ProxyPass / http:// localhost:8983 / ProxyPassReverse / http:// localhost:8983 / 如果我使用浏览器直接访问端口(不通过Apache代理),则可以访问端口8983,但如果访问/通过Apache服务器,则无法连接到端口8983。 我可以改变代理的东西像http://slashdot.org和Slashdot得到成功代理(所以我知道它能够代理一般)。 我在Apache中打开了debugging日志logging,这是事务: [Sun Apr 22 16:47:04 2012] [debug] mod_proxy_http.c(56):proxy:HTTP:canonicalising URL // localhost:8983 / [Sun Apr 22 16:47:04 2012] [debug] proxy_util.c(1506):[client 184.39.79.7] proxy:http:found worker http:// localhost:8983 / for http:// localhost:8983 / [Sun Apr 22 16:47:04 […]
我正在尝试启用代理虚拟主机: <VirtualHost *:80> ServerName xxxxx.domain.tdl SSLProxyEngine On SSLProxyCheckPeerCN on ProxyPass / https://localhost:1234 ProxyPassReverse / https://localhost:1234 </VirtualHost> 但我有一个500 err和我的error.log(apache2)显示: [2012年1月3日星期二15:41:42] [错误](502)未知错误502:代理:传递请求正文失败[:: 1]:1234(本地主机) [tue Jan 03 15:41:42 2012] [error] proxy:pass request body failed to [:: 1]:1234(localhost)from 82.252.xxx.xx() 缺less一些参数?
我们有两台Apache服务器作为前端,四台Tomcat服务器作为后端,使用mod_proxy模块作为负载均衡器。 现在,我们要从mod_proxy负载平衡器中排除单个tomcat url。 有什么方法或规则可以排除? 代理平衡器设置: <Proxy balancer://backend-cluster1> BalancerMember http://10.0.0.1:8080 loadfactor=1 route=test1 retry=10 BalancerMember http://10.0.0.2:8080 loadfactor=1 route=test2 retry=10 </Proxy>
当使用mod_proxy作为SOAP Web服务的反向代理时,我每隔几分钟就会得到一个错误。 每秒可能有3或4个请求,所以我们在每千个有1个或2个这样的错误。 [Tue Nov 23 11:44:14 2010] [error] [client 172.16.1.31] (20014)Internal error: proxy: error reading status line from remote server soap1.server:8888 [Tue Nov 23 11:44:14 2010] [error] [client 172.16.1.31] proxy: Error reading from remote server returned by /someapp/path/to/web/service 这会导致请求失败。 如果我有客户端直接连接到肥皂服务器而不使用代理,成功是100%,所以问题似乎在代理中 configuration看起来像这样。 如果主服务器不可用,则切换到备份服务器: <Proxy balancer://apicluster> BalancerMember http://soap1.server:8888 lbset=0 BalancerMember http://soap2.server:8888 lbset=1 </Proxy> ProxyPass /someapp balancer://apicluster/someapp […]
我有Apache2与PHP + PHP-FPMconfiguration根据: http://wiki.apache.org/httpd/PHP-FPM 我正在编写一个需要很长时间才能在内部虚拟主机上执行的脚本,但是如果脚本在30秒内执行,所有内容都将保持超时。 我的apache日志告诉我: [Wed Apr 17 21:57:23.075175 2013] [proxy_fcgi:error] [pid 9263:tid 140530454267648] (70007)The timeout specified has expired: [client 58.169.202.172:49017] AH01075: Error dispatching request to :, referer: 当试图运行脚本时,我会在执行完30秒后收到503 Service Unavailable 。 从逻辑上讲,这意味着我有超时指令或设置为30秒,但我有这些在我的Vhost的configuration: Timeout 600 <IfModule proxy_module> ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9001/home/pyrokinetiq/scripts/$1 timeout=600 ProxyTimeout 600 </IfModule> (php-fpm在我的端口9001上运行) 我也试着把httpd.conf的Timeout和ProxyTimeout没有区别。 似乎有另一个超时设置的某个特定于mod_proxy_fcgi ,但我找不到它。 我从官方tarball安装了Apache2的httpd,没有一个mods似乎有任何configuration文件。 如果任何人都可以指出我正确的方向,将不胜感激。
所有的ProxyPass指令都需要ProxyPassReverse指令吗? ProxyPass / http://foo.example.com:8080/ ProxyPassReverse / http://www.example.com/ 我看到了这个片段,并明白所有来自foo.example.comstream量都会被代理到foo.example.com:8080。 第二行是干什么的?