httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcin 'Rambo' Roguski <>
Subject [users@httpd] Rewriting as per-user-subdomains
Date Sat, 24 May 2008 15:30:53 GMT

I was given a task for configuring the server so that if one calls (yes, I know it's way too long- but on purpose)
the server will silently rewrite the request so 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(.*)$1/joomla$2
RewriteLog /var/log/apache2/userdomain-access.log

The possible problem: the machine ( is basically a huge
"NameVirtualHost" hosting about 30 domains which are aliases to
Apache manages pretty well when I specify a ServerName in VirtualHost directive
but is clueless about this:

ServerName www.*                                                


Is there any way to make it work?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message