httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leif W" <warp-...@usa.net>
Subject Re: [users@httpd] RewriteRule - works for /~user/ but not /user/
Date Tue, 28 Oct 2003 19:35:50 GMT
----- Original Message ----- 
From: "Dave [Hawk-Systems]" <dave@hawk-systems.com>
To: <users@httpd.apache.org>
Sent: Tuesday, October 28, 2003 1:51 PM
Subject: RE: [users@httpd] RewriteRule - works for /~user/ but not /user/


> I want to rewrite/redirect any requests to
> http://sites.mydomain.com/user1 -> /www/vhosts/user1/public_html/
> http://sites.mydomain.com/user2 -> /www/vhosts/user2/public_html/
> http://sites.mydomain.com/user3 -> /www/vhosts/user3/public_html/

Again, modifying the example at
http://httpd.apache.org/docs-2.0/urlmapping.html#user ,

From:

    AliasMatch ^/upages/([a-zA-Z0-9]+)/?(.*) /home/$1/public_html/$2

To:

    AliasMatch ^/([a-zA-Z0-9]+)/?(.*) /www/vhosts/$1/public_html/$2


Would this work?


Leif



---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message