[oclug] Proxy, other away around?
adrian at enfusion-group.com
Mon Aug 13 15:44:34 EDT 2001
On Mon, Aug 13, 2001 at 12:50:43AM -0400, hairymonster wrote:
> Apache Web Server 1 -------|
> (domain1.com) |--------IpMasq server
> IP 10.0.0.2 | IP 10.0.0.1/24.x.x.x
> Apache Web Server 2 -------|
> IP 10.0.0.3
> So is it possible for someone accessing domain1.com from 24.x.x.x to be
> automatically routed to ApacheWebServer 1, and domain2.com to access
> ApacheWebServer 2?
Actually, this is really easy if you want to set up an Apache server
on the IPMasq box.
Then, just look up ProxyPass and ProxyPassReverse directives at
Then, requests to your Rogers gateway can be proxied by setting up
VirtualHosts on the IPMasq server and ProxyPass'ing the requests to
the actual servers behind your gateway.
For example, in httpd.conf on your Rogers box:
ProxyPass / http://10.0.0.2
ProxyPassReverse / http://10.0.0.2
ProxyPass / http://10.0.0.3
ProxyPassReverse / http://10.0.0.3
> Originally, I was planning to place a squid server and apache server onto
> the IpMASQ server, and do everything like that, is that a good idea? Has
> anyone done this before, and documented it? i.e. a decent, (or maybe not
> so decent) Howto doc?
I'm doing this, haven't ever documented it, although Apache does a
pretty good job of that.
Adrian Chung (adrian at enfusion-group dot com)
GPG Fingerprint: C620 C8EA 86BA 79CC 384C E7BE A10C 353B 919D 1A17
[toad.enfusion-group.com] up 4 days, 1:25, 5 users
More information about the OCLUG