httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave [Hawk-Systems]" <d...@hawk-systems.com>
Subject RE: [users@httpd] RewriteRule - works for /~user/ but not /user/
Date Tue, 28 Oct 2003 19:40:49 GMT
>> 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

bingo!  was too hung up on the "rewriterule" directive...  forest for the trees
type of deal.

thanks

Dave



---------------------------------------------------------------------
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