apache 2.0 and vhost problem, help
Hello, I am trying to setup apache so thathttp://username.domain.com
will point to the same place as:
http://www.domain.com/~username
which would be at: /home/username/public_html
How do I set this up?
after reading the docs and google searching, I tried this, but it doesn't seem to work:
Code:
<VirtualHost *> ServerName www.users.tcoburn.com ServerAlias tcoburn.com *.tcoburn.com RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.[^.]+\.tcoburn\.com$ RewriteRule ^(.+) %{HTTP_HOST}$1 [C] RewriteRule ^www\.([^.]+)\.tcoburn\.com(.*) /home/$1$2 </VirtualHost>
I'm trying to do what f2o.org and the rest of the webhosts do,
and create accounts as username.domain.com, like f2o.org does
thanks