Hi,
I was given a task for configuring the server so that if one calls
http://www.user.do.id.uw.edu.pl (yes, I know it's way too long- but on purpose)
the server will silently rewrite the request so
http://do.id.uw.edu.pl/~user/joomla/ will be given
Wasn't a difficulty finding it in httpd docs, however it doesn't trigger.
RewriteCond %{HTTP_HOST} ^www\.[^.]+\.do\.id\.uw\.edu\.pl$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^www\.([^.]+)\.do\.id\.uw\.edu\.pl(.*)
http://do.id.uw.edu.pl/~$1/joomla$2
RewriteLog /var/log/apache2/userdomain-access.log
The possible problem: the machine (do.id.uw.edu.pl) is basically a huge
"NameVirtualHost" hosting about 30 domains which are aliases to do.id.uw.edu.pl.
Apache manages pretty well when I specify a ServerName in VirtualHost directive
but is clueless about this:
<VirtualHost do.id.uw.edu.pl>
ServerName www.*.do.id.uw.edu.pl
...
</VirtualHost>
Is there any way to make it work?
Rambo
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]