Apache ProxyPass doubt (ubuntu 6.10, apache 2.0)
Hi all,
I will start with a little description of my situation ´cause maybe a proxypass is not the best option. Basically I need to share the port 443 of the firewall for two web servers. My situation now(I say now ´cause I tried various possibilities) is as follows: I have added a new virtual server in my /etc/apache2/sites-enabled/000-default in my ubuntu, with this lines: <VirtualHost *> ProxyVia on ProxyPreserveHost On ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / https://fedora:443/ ProxyPassReverse / https://fedora:443/ </VirtualHost> The Ubuntu server has all the firewall 443 traffic redirected to it and the fedora which is the one I want to ProxyPass from the ubuntu one. Im a bit confused so some help will be appreciated! thanks, Carlos. |
Solved. This is what I did to make it work.
The concept is that the redirected host acts as a folder in the host which redirects. I added this lines at the end of my /etc/apache2/sites-enabled/000-default Redirect /fedora https://ubuntu <VirtualHost *> ProxyPreserveHost On ProxyRequests Off ProxyPass /fedora https://fedora:443 ProxyPassReverse /fedora https://fedora:443 </VirtualHost> Thanks ! |
All times are GMT -5. The time now is 06:56 PM. |