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

Re: [cobalt-users] Re: multiple domains pointing to a single site.



--- Dave Rowlands <dave@xxxxxxxxxxxxxxx> wrote:
> I've got 3 domains redirecting to the same IP, and they are supposed to go
> to  the sam site on my RaQ3.  The only problem is that the RaQ creates a 
> different directory for each address - so the names end up going to
> different places.  The only way I can think of changing this is by
> altering the .htconfig files - which I don't want to do.
> Is this the only way, or have I just got it seup wrong?

Two ways:

[1] create three virtual sites,
    1 daveiscool.com               <-- the "real" site
    2 daveissleepingonthejob.com
    3 davesraq.com

in the directory for sites 2 and 3 (/home/sites/siteXXX/web/), place a file
called ".htaccess". In the file, put one line:
   Redirect / http://daveiscool.com/


[2] create one virtual site. edit the /etc/httpd/conf/httpd.conf file. see
where it says:

<VirtualHost XXX.XXX.XX.XX>
...
ServerName www.daveiscool.com
ServerAlias daveis.cool.com
## ADD NEW LINES HERE
ServerAlias daveissleepingonthejob.com
ServerAlias www.daveissleepingonthejob.com
ServerAlias davesraq.com
ServerAlias www.davesraq.com
## END NEW LINES
...
</VirtualHost>

then restart apache (/etc/rc.d/init.d/httpd.init restart).

Paul

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