[geeks] Proxy question
    Jonathan C. Patschke 
    jp at celestrion.net
       
    Thu May  4 22:43:01 CDT 2006
    
    
  
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>
-- 
Jonathan Patschke   )  "Why is Perl hard?  Well, for a start, is has
Elgin, TX          (    no grammar.  You can't generate a parser for
USA                 )   Perl, its too irregular."     --Darren Hobbs
    
    
More information about the geeks
mailing list