Forum OpenACS Q&A: Response to some problem in virtual hosting on RH7

Posted by Ken Mayer on
I struggled with the vhr stuff a long time ago, and finally gave up. Apache does a better job of that than AOLserver, so I let Apache do that (listen on port 80) and run a vanilla nsd on a localhost interface ( Here's a sample from my config:
Listen 80

# Default, if the browser doesn't supprt named hosts
<VirtualHost _default_:80>
DocumentRoot /home/proxy/www
RewriteEngine on
RewriteRule ^.* /

DocumentRoot /web/bw-dev
ServerPath /bw-dev
RewriteEngine on
RewriteRule ^/bw-dev/(.*)$1 [proxy]
RewriteRule ^/bw-dev   [proxy]
ProxyPass        /
ProxyPassReverse /