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

Re: [cobalt-users] Mutilpe Domains at 1 ip



Douglas Spooner <Doug@xxxxxxxxxxxxxx> wrote:
> oops sorry I should rephrase my question (Sorry its friday evening doh) I
> mean i want to point mutiple Domains at one virtual site. Sorry for the
> confusion.

Then create the site as you normally would.  Create the DNS for all of the
domains.  Edit httpd.conf for that VirtualHost.  Easy way to find the line # is
to do:

1. cat /etc/httpd/conf/httpd.conf | grep -n domain
2. note the line #
3. pico -w +LINE_NUMBER_HERE httpd.conf

Add the following lines below the existing ServerAlias line:

ServerAlias domain2.tld www.domain2.tld
ServerAlias domain3.tld www.domain3.tld

The restart Apache.  You can put multiple hosts per ServerAlias line or one per
line - I do them as above b/c I like it organized that way.

--
Steven Werby {steven-lists@xxxxxxxxxxxx}