[geeks] Proxy question

Phil Stracchino phil.stracchino at speakeasy.net
Thu May 4 23:39:47 CDT 2006


Jonathan C. Patschke wrote:
> 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>

I had to modify this somewhat (for starters, even if EVERYTHING is
getting transparently proxied, it turns out it's still necessary to use
a <Location /> to authorize browsers to access / so that it can be
redirected), but with relatively little trial and error I did indeed get
this working, at least for HTTP.  HTTPS isn't working yet; if I add a
second section for VirtualHost www.bar.net:443, Apache2 complains at
load time but the HTTPS proxy doesn't work.

-- 
 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