Reverse proxy with Apache2 not working
I am using Apache / 2.2.8 (Ubuntu) and have a problem. There is a file / etc / apache 2 / sites-available / backuppc with the following:
<VirtualHost *>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /backuppc http://192.168.134.59:80/backuppc
ProxyPassReverse /backuppc http://192.168.134.59:80/backuppc
<Location /backuppc/>
ProxyPassReverse /backuppc
</Location>
</VirtualHost>
This runs at 192.168.134.10. In the browser (FF), the http: // localhost / BackupPc address is sent to the correct server, but the address bar is displayed with http://192.168.134.59/backuppc/. It looks like ProxyPass is acting as a DNS server ... Finally, only 192.168.134.10 is available from the Internet, and with / backuppc I get the login, but now I get access to the server I want.
Please help, thanks.
World
Ice
source to share
I got it myself with a little help http://wiki.apache.org/cocoon/ApacheModProxy
The invalid part was ProxyPreserveHost On, as you can see in my config:
<VirtualHost *>
ProxyPreserveHost On
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /backuppc http://192.168.134.59/backuppc
ProxyPassReverse /backuppc http://192.168.134.59/backuppc
</VirtualHost>
This happens on apache at ip 192.168.134.10 which serves as a wiki. The firewall has a port for this server. This configuration now allows you to access the standby server website unchanged on the firewall.
However thanks for your answers
World
Ice
source to share