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

Re: [cobalt-users] Subdomains



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I know this has been done to death but I can't seem to get my head
> round it. I've looked through the archives but can't really find a
> definitive answer.
> 
> Could someone explain exactly which I need and which I don't.  The
> domain is actually workinprogress.co.uk and the idea is that there
> are four of us who will be able to use it with our own subdomains. 
> So I would be able to show clients
> www.andy.workinprogress.co.uk/myclientname as would the other with
> their clients.  I want to set it up so that we can all have out own
> usernames and subdomains etc.

I personally would not set it up with the www in front of your 
subdomain, and just have it 'andy.workinprogress.co.uk'... but either 
way, it shouldn't make a difference.

The way the RaQ parses things, the only thing which should be in the 
domain field are the last 2 items in the domain name, in your case 
'.co.uk'... your 'hostname' would be 'andy.workinprogress' or 
'www.andy.workinprogress'

So you could set up a virtual site with:

hostname: www.andy.workingprogress
domain: co.uk
web server alias: andy.workinprogress.co.uk
mail server alias: andy.workinprogress.co.uk

Then set up your usernames for that virtual site in the UI. DNS 
records for the virtual site would be:

www.andy.workinprogress.co.uk 'A' IP
andy.workinprogress.co.uk 'A' IP
mail.andy.workinprogress.co.uk 'A' IP
www.andy.workinprogress.co.uk 'MX' mail.andy.workinprogress.co.uk
andy.workinprogress.co.uk 'MX' mail.andy.workinprogress.co.uk

Repeat for the other three users, putting their names in the obvious 
places.

There's probably also a simpler way to do it with tweaking the 
'Rewrite' rules in httpd.conf, but I'm not a Rewrite expert... :)

- -- 
Bruce Timberlake

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+JFcOvLA2hUZ9kgwRAs6ZAJ9KjYlzBy7cqvOdtowSgwJhMqOpzACbBXoz
Mfepcsnbge5YES8wQ8n6LbY=
=LVKL
-----END PGP SIGNATURE-----