mod-proxy

Mod cluster proxy timeout in apache error logs

大兔子大兔子 提交于 2019-12-22 06:48:47
问题 In our environment we get these entries consistently in error logs. [Sun Dec 22 20:29:43 2013] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header [Sun Dec 22 20:29:43 2013] [error] ajp_read_header: ajp_ilink_receive failed [Sun Dec 22 20:29:43 2013] [error] (70007)The timeout specified has expired: proxy: read response failed from (null) (xx.xx.xx.xx) [Sun Dec 22 20:30:01 2013] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't

How to use ProxyPass to serve static files through Express?

不想你离开。 提交于 2019-12-21 04:37:08
问题 I'm using Apache with mod_proxy to serve my Node app with Express, ProxyPass /nodeapp http://localhost:3000/ ProxyPassReverse /nodeapp http://localhost:3000/ but the static JS and CSS are being requested from the wrong place. For example, I want the CSS from http://homepage/nodeapp/css But it's being requested from http://homepage/css 回答1: I solved this problem in my environment by using the HTML "Base" tag in my application's index.html, and then ensured that all links within my application

Tomcat cookies not working via my ProxyPass VirtualHost

天涯浪子 提交于 2019-12-20 10:38:05
问题 I'm having some issues with getting cookies to work when using a ProxyPass to redirect traffic on port 80 to a web-application hosted via Tomcat. My motivation for enabling cookies is to get rid of the "jsessionid=" parameter that is appended to the URLs. I've enabled cookies in my context.xml in META-INF/ for my web application. When I access the webapplication via http://url:8080/webapp it works as expected, the jsessionid parameter is not visible in the URL, instead it's stored in a cookie

Apache ProxyPass and Sessions

和自甴很熟 提交于 2019-12-19 17:40:59
问题 So I'm using Apache to proxy a specific folder to a Glassfish instance. The rules in my conf are: ProxyPass /folder http://localhost:28083 ProxyPassReverse /folder http://localhost:28083 ProxyPassReverseCookiePath /folder http://localhost:28083 It's working fine, except for the sessions. For every subfolder a new session is created. So while I stay in one folder, the session persists, but as soon as I jump into another folder a new session is made. How can I have one session for all

How can I setup reverse proxy on IIS, allowing cross-host communciation between host1.mydomain.com and host2.mydomain.com?

喜你入骨 提交于 2019-12-19 17:28:31
问题 I have a page at host1.mydomain.com/page_from_host1.jsp and an HTML page at host2.mydomain.com/page_from_host2.html. host1 is an IIS7/Tomcat box and host2 is an IIS7 box. I want to allow the first page to submit a form, which displays the second page, and the URL does not change. That is, the URL is host1.mydomain.com/page_rom_host2.jsp, but the contents of the page are from host2.mydomain.com/page_from_host2.html. I would imagine I can setup a reverse proxy on IIS to accomplish this, similar

How can I setup reverse proxy on IIS, allowing cross-host communciation between host1.mydomain.com and host2.mydomain.com?

♀尐吖头ヾ 提交于 2019-12-19 17:28:10
问题 I have a page at host1.mydomain.com/page_from_host1.jsp and an HTML page at host2.mydomain.com/page_from_host2.html. host1 is an IIS7/Tomcat box and host2 is an IIS7 box. I want to allow the first page to submit a form, which displays the second page, and the URL does not change. That is, the URL is host1.mydomain.com/page_rom_host2.jsp, but the contents of the page are from host2.mydomain.com/page_from_host2.html. I would imagine I can setup a reverse proxy on IIS to accomplish this, similar

Apache2 Reverse Proxy to an end-point that requires BasicAuth but want to hide this from user

半城伤御伤魂 提交于 2019-12-17 21:53:50
问题 Basically my scenario is that I have an internal website that requires a SINGLE hard-coded username and password to access (and this can't be turned off, only changed). I am exposing this website through a reverse proxy for various reasons (hiding the port, simplifying url, simplifying NAT, etc). However, what I would like to do is be able to use Apache to handle the authentication so that: I don't have to give out single password to everyone I can have multiple usernames and passwords using

Using go-websocket behind Apache mod_proxy_wstunnel

匆匆过客 提交于 2019-12-17 15:59:13
问题 Note: Updated config and added trailing slash to websocket path. Still same problem Is it possible to use go-websocket behind a Apache reverse proxy with mod_proxy_wstunnel? I tried and failed to get things working. I tried to use the Chat example behind an Apache reverse proxy (with mod_proxy_wstunnel enabled). And it doesn't work. The proxy is a success, while the websocket part does not work at all. My Apache config looks similar to this: <VirtualHost *:80> DocumentRoot /var/www/foobar

Apache + Tomcat: Using mod_proxy instead of AJP

青春壹個敷衍的年華 提交于 2019-12-17 10:15:42
问题 Is there any way I connect Apache to Tomcat using an HTTP proxy such that Tomcat gets the correct incoming host name rather than localhost? I'm using this directive in apache: ProxyPass /path http://localhost:8080/path But it comes through as localhost, which is useless when we have a bunch of sites on the same server. I could set the host manually in the server config: <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" proxyName="pretend.host" proxyPort="80" /> But that

How to forward only *.jsp or *.do requests to Tomcat using mod_proxy?

流过昼夜 提交于 2019-12-13 16:53:30
问题 I am using mod_proxy module to forward all requests for one of my domain to be served by Tomcat. However I want to forward only requests ending *.jsp or *.do or *.something to Tomcat and rest (e.g. *.html, *.php, *.png) to be served by Apache server. How to achieve that using mod_proxy ? Following is sample httpd.conf config that I am using currently: <VirtualHost *:80> DocumentRoot /usr/share/tomcat6/webapps/mywebapp ServerName example.com ServerAlias www.example.com ProxyRequests Off