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

RE: [cobalt-developers] sub domains



I guess we need a whole Gas Station to wake up people on this list :).
Anyhow, I believe that Gerald answer was pretty straight forward. Again
although I mentioned Cobalt's limit, the Apache easily can handle more than
that number, yet the GUI and how the Cobalt Raqs are designed is around
250...

KAl

-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of fastmedia
Sent: Thursday, January 18, 2001 5:21 AM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-developers] sub domains



> 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



_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com