Web Hosting Talk







View Full Version : Setting up multiple domains on one account


bert
10-16-2001, 06:09 PM
Hi everyone.

We are looking for ideas on how to setup multiple domains on one account. We basically go and modify the httpd.conf file, but this is just too much work.

We thought about creating a subdomain on the account and then park the additional domain on top of the subdomain and it worked without problems, however, email for the parked domain is not routed to the default account.

Any ideas?

Suggestions are appreciated. Thanks!

cperciva
10-16-2001, 06:45 PM
Originally posted by bert
We basically go and modify the httpd.conf file, but this is just too much work.

Err... if it's too much work to do it manually, how about writing a script to do it for you? While you're doing that, you could have the same script set up DNS entries and add the appropriate lines to /var/qmail/control/rcpthosts and /var/qmail/control/virtualdomains.

bert
10-17-2001, 02:19 PM
Thanks cperciva. Actulally, I just found out that when we create a subdomain through Cpanel and then park a domain on top of the subdomain via WHM, all the proper entries are created in httpd.conf and /etc/localdomains and /etc/valiases

No need to write a script ;)