This is a discussion on Re: setting up virtual domains within the Linux General forums, part of the Linux Forums category; At Mon, 24 Mar 2008 03:32:55 -0700 (PDT) tash <tdnnash25@gmail.com> wrote: > > Hi, &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
At Mon, 24 Mar 2008 03:32:55 -0700 (PDT) tash <tdnnash25@gmail.com> wrote:
> > Hi, > > I've got a couple virtual domains setup in apache2.conf, but I need to > figure out how to get "domain.com" to resolve. You want the ServerAlias keyword. For example: <VirtualHost *:80> ServerName www.domain.com ServerAlias domain.com ... </VirtualHost> > > Right now "www.domain.com" works, and we are pointing "domain.com" > with the registrar to the same IP, but when we surf to it, it brings > up the default apache page. > > What I did as a temporary solutions is setup "domain.com" identically > to "www.domain.com", but whenever we make a change to the site, we'll > have to do it in 2 places which isn't really a good idea. > > Thanks for your help. > > -- Robert Heller -- Get the Deepwoods Software FireFox Toolbar! Deepwoods Software -- Linux Installation and Administration http://www.deepsoft.com/ -- Web Hosting, with CGI and Database heller@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk |