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

Re: [cobalt-users] 2 domains, 1 virtual site?



--- Bram <waking@xxxxxxxxxxxx> wrote:
> Can anyone tell me if it's possible, and how, to have two domain names
> resolve at the same "virtual site"?

0. Make sure you have set up DNS (A records) for all the domains you need.

1. create the virtual site you want them all to resolve to. let's call it
www.bram.com.

2. login as root; edit /etc/httpd/httpd.conf.

3. look for 
<VirtualHost XXXX>
...
ServerName www.bram.com
ServerAlias bram.com
...
</VirtualHost>

4. below the ServerAlias line, add ServerAlias lines for the other virtual
sites that will resolve to the same site. It should now look like:

<VirtualHost XXXX>
...
ServerName www.bram.com
ServerAlias bram.com
ServerAlias www.bramshouse.com
ServerAlias bramshouse.com
[other lines]
...
</VirtualHost>

5. Reboot Apache (/etc/rc.d/init.d/httpd.init restart)

> Can I put more than one domain in the "domain name" field?

Not in the GUI :-)


Paul

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com