RewriteEngine On
RewriteRule /VIRTUAL/([^/]+) http://$1 [R]
RewriteCond %{HTTP_HOST} ^rip$ [NC]
RewriteRule / http://rip:631/ [R,L]
RewriteCond %{HTTP_HOST} ^proxy$ [NC]
RewriteRule / http://rip:8080/ [R,L]
#UseCanonicalName DNS
UseCanonicalName Off
NameVirtualHost *
DocumentRoot /var/www
ScriptAlias /cgi-local /var/www/cgi-local
Options +ExecCGI
AuthPAM_Enabled On
AuthType Basic
AuthName BOS
require group users
VirtualDocumentRoot /var/www/VIRTUAL/%0/www
VirtualScriptAlias /var/www/VIRTUAL/%0/cgi-local
Options +ExecCGI
AuthPAM_Enabled On
AuthType Basic
AuthName BOS
require group users