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 [users@httpd] RewriteRule - works for /~user/ but not /user/
Date Tue, 28 Oct 2003 14:50:20 GMT
have a domain name just for user personal sites.
mod_userdir makes "sites.mydomain.com/~username" work just fine.
user homedirs are in the /www/vhosts/username
mod_userdir correctly pushes ~user into the user public_html directory
	UserDir public_html
	/www/vhosts/username/public_html

want to provide similar functionality to "sites.mydomain.com/username".

using the below RewriteRule ends up dumping me in the /www directory though
    RewriteRule ^/([a-z0-9A-Z\.\-]+)(.*) /www/vhosts/$1/public_html/$2

excerpt from httpd.conf
++++++++++++++++++++++++++++++++++++++++++++++++++++++
.
.
RewriteEngine on
.
.
.
<VirtualHost 192.168.1.1>
    DocumentRoot /www
    ServerName webserver.mydomain.com
    ServerAlias sites.mydomain.com
    RewriteRule ^/([a-z0-9A-Z\.\-]+)(.*) /www/vhosts/$1/public_html/$2
</VirtualHost>
.
.
++++++++++++++++++++++++++++++++++++++++++++++++++++++

comments appreciated.

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