Mod_Rewrite Virtual User Domains
I'm currently attempting to get Mod_Rewrite in Apache to do Virual User Domains.ie username.users.domain.com would be a Virtual Domain for http://users.domain.com/~username/
This is what I currently have in my httpd.conf and does not work... It's modified from the one on the rewrite Guide on Apache's site due to the way I have my directories laid out and such. If anyone could give me some tips if they have done this, or see what I'm doing wrong that would be great.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(([a-z])[a-z0-9]+)\.users\.domain\.com$
#RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^(([a-z])[a-z0-9]+)\.users\.domain\.com(.*) /directory/home/$2/$1/public_html
I do have *.users.domain.com pointing to the appropriate IP address. However, whenever I go to username.users.domain.com it gives me my "no website configured at this address" default page.