[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] sub domains
- Subject: Re: [cobalt-developers] sub domains
- From: "fastmedia" <inc@xxxxxxxxxxxxx>
- Date: Thu Jan 18 01:22:00 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
> But then we would use up the number of max sites that is defined by the
> Cobalt people which is 250 I guess. Is there a way to do this efficiently
> without adding a vsite through the UI.
didn't realise that there is a hard limit??
there was another way suggested to me (which should almost make this a
valid topic for discussion on cobalt-developers :) -->
1. Create 'A' records in DNS for mydomain.com "www.subdomain.mydomain.com"
and subdomain.mydomain.com
2. Create user "subdomain" in mydomain.com virtual site.
3. Create a file in /etc/httpd <anyname> I use mydomain.conf.
Put the following text in mydomain.conf.
<VirtualHost 111.222.333.444>
ServerName www.subdomain.mydomain.com
ServerAdmin admin
ServerAlias subdomain.mydomain.com
DocumentRoot /home/sites/siteX/users/subdomain/web
RewriteEngine on
RewriteCond %{HTTP_HOST} !^111.222.333.444(:80)?$
RewriteCond %{HTTP_HOST} !^www.subdomain.mydomain.com(:80)?$
RewriteRule ^/(.*) http://www.subdomain.mydomain.com/$1
[L,R]
RewriteOptions inherit
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
</VirtualHost>
4. edit /etc/httpd/conf/httpd.conf
add a line that states:
"include domain.conf" (without quotation marks)
5. restart httpd
DONE
> > > wants to create virtual sites in the form of sub domains.
> > > www.subdomain1.mydomain.com
> > > www.subdomain2.mydomain.com
> > > etc ......
> > > instead of
> > > www.newsite.com
> > > Is this possible ?
> yep it was brilliantly suggested to me to enter:
>
> hostname: www
> domain name: subdomain1.mydomain.com