UseCanonicalName Off
<Directory c:/www/page/www/users/>
# ExecCGI is needed here because we can't force
# CGI execution in the way that ScriptAlias does
Options FollowSymLinks ExecCGI
</Directory>
# now for the hard bit
RewriteEngine On
# a ServerName derived from a Host: header may be any case at all
RewriteMap lowercase int:tolower
## deal with normal documents first:
# allow Alias /icons/ to work - repeat for other aliases
#RewriteCond %{REQUEST_URI} !^/icons/
# allow CGIs to work
#RewriteCond %{REQUEST_URI} !^/cgi-bin/
# do the magic
RewriteRule ^/(.*)$ /page/www/users/${lowercase:%{SERVER_NAME}}/docs/
## and now deal with CGIs - we have to force a MIME type
#RewriteCond %{REQUEST_URI} ^/cgi-bin/
RewriteRule ^/(.*)$ /page/users/${lowercase:%{SERVER_NAME}}/cgi-bin/$1 [T=application/x-httpd-cgi]