[wellylug] Proxy Pass in Apache

Phillip Hutchings sitharus at gmail.com
Mon May 2 15:41:10 NZST 2005


On 02/05/05, Chris Hodgetts <chris at archnetnz.com> wrote:
> Just a quick question,
> 
> I have a host set up internally to supply some web pages to the outside
> world, I have set up proxy passing the following way:
> 
>          ServerName      somehost.somedomain.com
>          ServerAlias     somehost.somedomain.com
>          ProxyPass   /   http://192.168.100.5/
>          ProxyPassReverse / http://192.168.100.5/
> 
> I believe I have set it up so that it can not be used as a proxy relay,
> or at least I should say all the tests I have done, say that it's not...
> 
> Anyway, on the internal box, I get this as the log IP address, because
> the machine requesting the pages is the internal machine
> 
> 192.168.100.1 - - [02/May/2005:14:49:11 +1200]
> 
> I was wondering, I know there is a way to enable apache to send on the
> remote IP of the machine, but I was just wondering if someone could
> please tell me how to do that ;)

http://httpd.apache.org/docs-2.0/mod/mod_proxy.html

Bottom of the page, ProxyVia On

-- 
Phillip Hutchings
http://www.sitharus.com/
sitharus at gmail.com / sitharus at sitharus.com




More information about the wellylug mailing list