On Mon, 2006-04-03 at 11:12 +1000, Ben Donohue wrote: > If a second physical web server (i know name based hosting can be done > on one web server) is added in the DMZ the firewall will still be > forwarding port 80 requests to the first web server. > I don't want a URL with say http://www.domain.com.au/81 in it for the > second site. > How does one get the right web server request to go to the correct web > server behind a firewall? > > I'm thinking apache on the first box will have to point to the second > web server somehow? Proxypass has been mentioned but unsure if this is > the correct way to go about it. > Anyway i'm still researching but has anyone done this?
"There are nine and sixty ways of constructing tribal lays, And every single one of them is right!" I've used ProxyPass, and RewriteRules with the [P] flag. It's *a* correct way to do it, and I find it simpler than setting up squid as described elsewhere in the thread. For small sites, I'd suggest sticking with ProxyPass. The apache docs at http://httpd.apache.org/docs/2.0/mod/mod_proxy.html and http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewriterule are a good reference, and include reasonable examples. -- Pete -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
