Apache 2.2 reverse proxy not working

I am trying to configure apache (version 2.2.3) to work as a reverse proxy. I configured apache on a public server as described in http://www.askapache.com/htaccess/reverse-proxy-apache.html

LoadModule proxy_module      modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule headers_module    modules/mod_headers.so
LoadFile   /usr/lib/libxml2.so
LoadModule proxy_html_module modules/mod_proxy_html.so

ProxyRequests off
ProxyPass /app1/ http://internal1.example.com/page1/
ProxyPassReverse /app1/ http://internal1.example.com/page1/
ProxyHTMLURLMap http://internal1.example.com/page1/ /app1/


internal1 is another server on the local network.

The home page (www.example.com/app1/) displays correctly, but the problem occurs when my internal server redirects. In this case, my browser (Firefox 3.5.3 or Internet Explorer 7) is looking for an address on the local network (internal1.example.com/page1/). It seems to me that the ProxyPassReverse directive is ignored by apache.

+5
source share
1 answer

ProxyPass ProxyPreserveHost On

. (Http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost)

+4

All Articles