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

From: Mike Pelley (mike_at_pelleys.com)
Date: 10/26/03

  • Next message: Mike Vanecek: "Re: rotate logs when they reach a certain size"
    To: redhat-list@redhat.com
    Date: Sun, 26 Oct 2003 13:50:54 -0330
    
    

    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.
    >
    >
    >

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Mike Vanecek: "Re: rotate logs when they reach a certain size"

    Relevant Pages


    Loading