Bluehost.com Web Hosting $6.95

Re: setting up virtual domains

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, &...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-24-2008
Robert Heller
 
Posts: n/a
Default Re: setting up virtual domains

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0