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

Re: [cobalt-users] two issues (redirecting domain and groupfile lock)



"Ashby Gochenour" <cobalt@xxxxxxxxxxxxxxxx> wrote:
> On to my questions:
>
> > You can do this, but it's overkill.  Use the ServerAlias line, but
instead
> > of replacing one of the existing ServerAlias lines add two more:
> >
> > ServerAlias newdomain.com
> > ServerAlias www.newdomain.com
> >
> > On newer versions of Apache you can even do the following, but I'm not
sure
> > about the Apache 1.3.x that's factory installed on the RaQ2.
> >
> > ServerAlias newdomain.com www.newdomain.com
>
> I tried doing it on the same line and it did not work. Though, I do not
think I restarted httpd properly.

Then you might have to do 1 per line.  Go to www.apache.org and lookup
ServerAlias and it should tell you what version of Apache was the first to
accept multiple domains on one line.

> I tried to do a kill -HUP on the httpd with the lowest PID (thinking this
would be the parent httpd). Can
> someone reccomend a better way to start apache after I've done the editing
of httpd.conf ?

/etc/rc.d/init.d/httpd.init restart

> > And make sure both have A records pointing to the same IP as
> > www.existingvirtualdomain.com.
>
> OK, so far we have been pointing all domains to the same IP as the raq
(eth0 IP). Will this cause a problem
> when I don't have a virtual site entry for the new domain, but only a
ServerAlias ?

No problems, this will work fine.

> > My preferred solution is to store VirtualHost containers that I have
edited
> > in a separate file so they're not overwritten by the Cobalt GUI.
Anywhere
> > in httpd.conf add:
> >
> > Include /etc/httpd/conf/httpd_other.conf (or whatever you want to name
it).
>
> Oh, I've not seen that done before. Can I put the Include in httpd.conf at
any point I want or does it need to be
> in a particular place?

The location doesn't matter.  In fact, if you read carefully you'll see
above that i said "Anywhere in httpd.conf...".

> Thanks again for the help. I really appriciate this list! :)

Glad to help.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/