[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Re: subdomains



> <VirtualHost ip.ad.re.ss>
> ServerName 123.domain.com
shouldn't this be ServerName www.123.domain.com

> ServerAdmin siteNN
and of course you put the admin the above line?

> ServerAlias 123.domain.com
> DocumentRoot /home/sites/siteNN/users/123/web
and of course this is actually pointing to the users siteNN

> RewriteEngine on
> RewriteCond %{HTTP_HOST}                !^ip.ad.re.ss(:80)?$
> RewriteCond %{HTTP_HOST}                !^www.123.domain.com(:80)?$
> RewriteRule ^/(.*)                      http://www.123.domain.com/$1 [L,R]
> RewriteOptions inherit
> AddHandler cgi-wrapper .cgi
> AddHandler cgi-wrapper .pl
> AddHandler server-parsed .shtml
> AddType    text/html     .shtml
> ScriptAlias /_vti_bin/_vti_adm/
/home/sites/siteNN/users/123/web/_vti_bin/_vti_adm/
> ScriptAlias /_vti_bin/_vti_aut/
/home/sites/siteNN/users/123/web/_vti_bin/_vti_aut/
> ScriptAlias /_vti_bin/ /home/sites/siteNN/users/123/web/_vti_bin/
> </VirtualHost>
>

What happens when attempt to connect to http://123.domain.com?
Gerald