Forum Moderators: bakedjake

Message Too Old, No Replies

Multible domains pulling from one website

Multible domains pulling from one website

         

ScottYardley

2:56 pm on Jul 30, 2003 (gmt 0)

10+ Year Member



How do I make more than one domain bring up the same website?
I dont want to redirect, I want to have multible domains pull from the same directory.

How do I do this?

seindal

3:28 pm on Jul 30, 2003 (gmt 0)

10+ Year Member



Make sure all domains point to the same IP address, and then use the ServerAlias in the apache configuration. A given virtual host section in the apache configuration will be activated for all names given as ServerName or ServerAlias.

René

ScottYardley

5:54 pm on Jul 30, 2003 (gmt 0)

10+ Year Member



Where do I set the ServerAlias? In a file?
Im using a virtual server.

Sorry for my lack of context

Panaman

5:29 am on Aug 13, 2003 (gmt 0)

10+ Year Member



I believe if you setup your virtual host like this... it should work.

<VirtualHost 10.0.0.1>
ServerAlias *.domain1.com *.domain2.com
ServerName domain1.com
DocumentRoot /home/www/domain1.com
</VirtualHost>

Just make sure you change that IP address (10.0.0.1) to the ip of your server.

Mark_A

10:07 pm on Aug 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



if you hosted both domains and wanted seperate stats you might want seperate virtual server statements for each of them no?