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

RE: [cobalt-users] SubDomain question - How to create one...



>I have dozens of domains done this way on my RaQ using an "extra" .conf
>file called in httpd.conf.
>
>A typical domain in the file:
>
><VirtualHost 123.456.78.90>
>ServerName www.sub.sample.com
>ServerAdmin admin
>DocumentRoot /home/sites/site31/web/sub
>RewriteEngine on
>RewriteCond %{HTTP_HOST}                !^123.456.78.90(:80)?$
>RewriteCond %{HTTP_HOST}                !^sub.sample.com(:80)?$
>RewriteRule ^/(.*)                      http://sub.sample.com/$1 [L,R]
>RewriteOptions inherit
>AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site31/users/$1/web/$3
>ServerAlias sub.sample.com
>#the site shares a cgi folder with the main domain
>ScriptAlias /cgi-bin/ /home/sites/site31/web/cgi-bin/
>#the site shares an images folder with the main domain
>Alias /images/ /home/sites/site31/web/images/
>AddHandler cgi-script .asp
>AddHandler cgi-wrapper .cgi
>AddHandler cgi-wrapper .pl
>AddType text/x-server-parsed-html .html .shtml
></VirtualHost>
>
>-- 
>C2003 Dan Kriwitsky
>
>Please reply to the list only. Off list replies are not read.

So I can add a new httpd.conf for each subdomain?
 

_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users