我们有一个应用程序,位于使用mod_proxy的Apache实例后面,将请求传递给正确的应用程序服务器。 我们的应用程序在直接查询时正确返回Connection: Keep-Alive ,但mod_proxy正在清理标题。 我做了一些阅读,一些人build议客户端需要设置一个Proxy-Connection: Keep-Alive的代理关于这一点,但也没有工作。 有可能有持久连接代理的Apache?
问题与Apache mod代理,它会停止代理正常重新启动后的请求,但不是所有的时间。 这似乎只发生在周日,当一个平稳的重启被logrotate触发。 [Sun Sep 9 05:25:06 2012] [notice] SIGUSR1 received. Doing graceful restart [Sun Sep 9 05:25:06 2012] [notice] Apache/2.2.22 (Ubuntu) Phusion_Passenger/3.0.11 configured — resuming normal operations [Sun Sep 9 05:25:06 2012] [error] proxy: ap_get_scoreboard_lb(492) failed in child 26153 for worker proxy:reverse [Sun Sep 9 05:25:06 2012] [error] proxy: ap_get_scoreboard_lb(486) failed in child 26153 […]
我想用mod_cache设置apache + mod_jk / mod_proxy。 但它看起来像所有代理请求被mod_cache忽略。 可能与模块处理顺序有关系吗? Apache 2.2.22 我已经尝试使用mod_jk和mod_proxy – 没有任何帮助。 LogLevel设置为debugging。 VirtualHost(https): ProxyPass /app/ https://server:8443/app/ ProxyPassReverse /app/ https://server:8433/app/ CacheEnable mem / #tried JkMount / loadbalancer #tried Also disk #CacheDefaultExpire 3600 #CacheEnable disk / #CacheDirLevels 2 #CacheDirLength 1 #CacheMaxFileSize 3000000 #CacheMinFileSize 1 #CacheIgnoreCacheControl On #CacheIgnoreNoLastMod On #CacheIgnoreQueryString On #CacheIgnoreHeaders Set-Cookie #CacheLastModifiedFactor 0.1 #CacheMaxExpire 86400 […]
我目前正在运行托pipe我的networking和gitlab服务器的CentOS以及托pipe一个亚音速服务器的Windows机器。 目前,我的IP指向CentOS,但没有正确redirect。 我能够访问/但无法访问任何其他网站的子域,尽pipe我已经做了设置,所以我想知道我要去哪里错了,如何纠正这个问题。 当人们inputhttp://git.example.com ,是否也可能自动将其redirect到https://git.example.com ? 提前致谢! NameVirtualHost *:80 #This should lead to subsonic server <VirtualHost *> ServerName music.company.com ServerAlias www.music.company.com ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyErrorOverride On ProxyPass / http://192.168.1.14:6060/ ProxyPassReverse / http://192.168.1.14:6060/ <Location /> Order allow,deny Allow from all </Location> </VirtualHost> Gitlab.conf LoadModule ssl_module modules/mod_ssl.so SSLSessionCache "shmcb:logs/ssl_scache(512000)" <VirtualHost […]
在通过https服务器通过Apache服务器反向代理将文件发布到Tomcat servlet时,我们突然看到一个间歇性的,但非常频繁的错误。 该错误似乎只在发布20 MB或更多(video)的文件时发生。 我们还没有看到2到5 MB(JPEG)的较小文件的问题。 在我们尝试过的五台服务器中,有两台发生错误。 在连接的服务器端,即使用Jersey创build的Tomcat servlet,我们得到: java.net.SocketException: Connection reset 作为反向代理的同一台计算机上的Apache服务器提供了以下错误消息: [Thu May 15 17:08:58 2014] [error] proxy: pass request body failed to 127.0.0.1:8080 (localhost) from 192.168.16.xx () 设置Apache服务器的日志级别来debugging和重现问题不会产生额外的信息 – 我们仍然得到相同的错误消息,没有任何关联的消息。 less一些,我们没有在Tomcat方面得到例外,但是检查传输的字节数量与Content-Length头部相比,并不是所有的东西都能完成。 第二种情况下,Apache Server中的错误与第一个“proxy:pass request body failed …”中的错误相同。 在一个服务器上的Apache服务器版本是2.2.15.29,另一个是在CentOS 6.2下运行的2.2.15.30。 反向代理规则是这样设置的: <IfModule mod_proxy.c> ProxyRequests Off # Case Manager Tomcat web service ProxyPass /casemanager […]
我有3个服务器都设置相同的负载平衡与Apache,mod_proxy_fcgi,php5-fpm和MySQL / mariaDB galera群集运行在Ubuntu 14.04服务器上的单个网站。 除了一页以外,一切接缝都可以正常工作。 页面im有上传和处理大csv文件(7K到20K行)的问题,然后将数据插入数据库。 当网站在一台服务器上运行时,这个页面工作正常,但是附加的时间galera集群需要同步其他两个服务器接口,这是问题的根本原因,因为它是一个同步更新,获得并保持locking直到所有3服务器被更新。 这是不明显的任何其他页面,但在这个脚本504返回错误,并且Apache错误日志包含以下错误。 [proxy_fcgi:error] [pid 24235] [client 99.99.99.99:44197] AH01068: Got bogus version 1,referer: http://example.com/page.php [proxy_fcgi:error] [pid 24235] (22)Invalid argument: [client 99.99.99.99:44197] AH01075: Error dispatching request to :, referer: http://example.com/page.php 99.99.99.99的IP地址是服务器的实际IP地址,而不是客户端,所以看起来php-fpm没有及时响应proxy_fcgi(因为它正在等待mysql),并返回超时。 我试图调整超时在我的apache站点configuration以及php-fpm超时没有运气。 我的apacheconfiguration如下 <Proxy fcgi://127.0.0.1:9000> ProxySet timeout=1800 </Proxy> ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/$1 也试过了 ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/$1 connectiontimeout=300 timeout=300 我不想在后台处理上传,因为如果我正在处理页面,如果在csv文件中发现错误,我正在使用mysql行pk,以允许用户编辑信息并更正问题。 我的用户更舒服的等待这个页面,然后他们回来检查它的进度。
我需要代理一些远程API https://example.com/api/ 可以在本地访问http://localhost/api/ 我试图把这一行放在httpd.conf : ProxyPass /api/ https://example.com/api/ 我已经检查了这些模块是否启用: ssl_module, proxy_module, proxy_http_module 当我试图达到http://localhost/api/ ,我得到500内部服务器错误,而我在error_log看到的是: [Wed Jan 14 16:42:04.788401 2015] [proxy:warn] [pid 21916] [client ::1:59260] AH01144: No protocol handler was valid for the URL /api/v1/ads. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule. […]
我想在proxy_balancer后面有两个tomcat服务器,所以我可以进行滚动部署。 我有这个工作,所以我可以取下一个tomcat,另一个采取futire请求 <Proxy balancer://production> BalancerMember http://10.10.10.111:8080 route=s1 BalancerMember http://10.10.10.112:8080 route=s2 ProxySet stickysession=ROUTEID </Proxy> ProxyPass /services balancer://production/services Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/;" env=BALANCER_ROUTE_CHANGED 我现在想要做的就是取下一台服务器,然后从平台pipe理器的池中取出。 然后,当我升级并使服务器启动并运行时 – 在返回到池之前,我希望能够访问它,以便在返回到池之前进行检查。 例如 ProxyPass /sanity_check http://10.10.10.111:8080/services 但这不会工作,因为服务器redirect到/服务,并通过平衡器。 我可以做一个单独的域名,但要避免这一点。 我想基于一个URL参数设置一个cookie可能工作,但很难做。 有一些function可以轻松实现吗? 例如在HAProxy我可以做到这一点 use-server tomcat_01 if { path_end TOMCAT_01 } use-server tomcat_02 if { path_end TOMCAT_02 }
我试图通过一个更干净的URL访问我的Plex Web UI。 目前,您可以访问http://marvin.boldlygoingnowhere.org:32400/web/index.html 。 我希望它在http://marvin.boldlygoingnowhere.org/plex inheritance人我有什么, 马文:〜马文$ httpd -v服务器版本: Apache/2.4.16 (Unix) Server built: Aug 22 2015 16:51:57 Server's Module Magic Number: 20120211:47 Server loaded: APR 1.4.8, APR-UTIL 1.5.2 Compiled using: APR 1.4.8, APR-UTIL 1.5.2 Architecture: 64-bit Server MPM: prefork threaded: no forked: yes (variable process count) Server compiled with…. -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D […]
我最近启用mod_proxy为apache2,并从断电重新启动我的服务器后,每当我试图启动apache2时出现以下错误: * Starting web server apache2 Syntax error on line 39 of /etc/apache2/sites-enabled/000-default: Regex could not be compiled Action 'start' failed. The Apache error log may have more information. 第39行包含以下内容: <ProxyMatch *> 我试着读取error.log文件,但找不到有关此错误的任何信息。 在服务器突然closures之前,Apache2正常运行(具有这些确切的设置)。 我的问题当然是:我该如何解决这个问题?