[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] SubDomain question - How to create one...
- Subject: RE: [cobalt-users] SubDomain question - How to create one...
- From: "Dan Kriwitsky" <list1@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue Feb 4 11:33:38 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> Dan Kriwitsky wrote :
> > Just look in the archive for an included .conf file or add the
> > subdomain to DNS and put the virtual host container in access.conf
> > pointing to /home/sites/site#/web/whatever/
>
> I just wanted to add my experience with this. A while ago I
> did the above with one of my sites, and it ended up throwing
> my admin panel out of synq, which caused problems with adding
> new sites through the control panel. Now, it could have been
> because I implemented it wrong, however the only way I could
> resolve the problem was to rebuild the server and do a restore.
>
> I have since been told that if I want this kind of
> functionality I should go for a White box using Webmin, which
> I intend to do if the need arises again.
>
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.