[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [OT] Good reference for setting up Apache in reverse proxy mode?



It is a good start!  I have it working for the main (e.g. www.foo.com) web site.  However, there are virutal hosts running on that server (e.g., they all use the same IP address with DNS CNAMEs).  I've tried to do the following:

<VirtualHost *>
        ServerName www.foo.com
        ProxyRequests On
        ProxyPass / http://internal-www.foo.com/
        ProxyPassReverse / http://internal-www.foo.com/
        CustomLog /var/log/httpd/www.rproxy.log combined
        ErrorLog /var/log/httpd/www.rproxy.error.log
</VirtualHost>
                                                                               
<VirtualHost *>
        ServerName specialsite.foo.com
        ProxyRequests On
        ProxyPass / http://internal-specialsite.foo.com/
        ProxyPassReverse / http://internal-specialsite.foo.com/
        CustomLog /var/log/httpd/specialsite.rproxy.log combined
        ErrorLog /var/log/httpd/specialsite.rproxy.error.log
</VirtualHost>

But, I only get to the first VirtualHost.  Any suggestions?

Thanks!
Mike

Jason Dixon wrote:
On Sun, 2003-10-26 at 10:26, Mike Pelley wrote:
  
Sorry for the OT post - I'm in a time crunch and need a quick-and-dirty 
reference for setting up Apache in reverse proxy mode.  Basically, I 
need to have the reference for http://www.foo.com go through to the 
reverse proxy to the internal web server.  The internal server is using 
virtual hosts as well.
    

You should be able to pull what you need out of this:
http://www.cafesoft.com/products/cams/docs/webagent/ApacheReverseProxy.html

HTH.

  


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]