[geeks] Proxy question

Phil Stracchino phil.stracchino at speakeasy.net
Thu May 4 22:49:18 CDT 2006


Jonathan C. Patschke wrote:
> On Thu, 4 May 2006, Nick B. wrote:
> 
> 
>>There is a reverse proxy module for apache that should be able to do that.
> 
> 
> Indeed.  It works really well.  Here's a snippet of httpd.conf from my
> web server (deceit):
> 
>    <VirtualHost *:80>
>      ServerAdmin webmaster at xxxxxxxxx
>      DocumentRoot /tmp
>      ServerName magnum.celestrion.net
>      ServerAlias magnum magnum.celestrion.net
>      ErrorLog logs/magnum_error.log
>      CustomLog logs/magnum_access.log combined
>      ProxyPass        / http://magnum.celestrion.net/
>      ProxyPassReverse / http://magnum.celestrion.net/
>    </VirtualHost>
> 
> Magnum is firewalled off, and its (public) A record points to deceit's
> IP address.  Deceit uses the private A record to look up magnum's real
> IP address and then proxies the connection.
> 
> For what the OP is trying to do:
> 
>    <VirtualHost *:80>
>      ServerAdmin webmaster at xxxxxxxxx
>      DocumentRoot /tmp
>      ServerName www.bar.net
>      ErrorLog logs/bar_net_error.log
>      CustomLog logs/bar_net_access.log combined
>      ProxyPass        / http://bastion.bar.net:81/
>      ProxyPassReverse / http://bastion.bar.net:81/
>    </VirtualHost>

Aha!  Is that a new directive in Apache 2.0?  I figured there ought to
be a way to do it within Apache, but couldn't see any applicable
directive in my Apache 1.3 documentation.



-- 
 Phil Stracchino                     Landline: 603-886-3518
 phil.stracchino at speakeasy.net         Mobile: 603-216-7037
 Renaissance Man, Unix generalist, Perl hacker, Free Stater



More information about the geeks mailing list