Domain Name Mapping

Joined
Feb 22, 2006
Messages
1,520
Reaction score
0
I'm trying to get multiple domains on one server but each one will point to a different directory, instead of just going to the same main folder.

www.1.com will go to the WOOT folder
&
www.2.com will go to the Weee folder

Like instead of www.2.com/Weee it will just be www.2.com
Or
www.1.com/WOOT will just be www.1.com

for example
instead of the default www or htdoc folder

Hope that makes sense lol
I know it's possible because my webhost does it
 
Last edited:
Check your Apache2.2\conf\default\httpd-vhosts.conf
 
O sexyness thanks copter ^_^
Setting it up now =p

*Edit*
Yay got it working! Thanks bunches Copter

Code:
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot ./htdocs/lunawow.com
ServerName www.lunawow.com

# Other directives here

</VirtualHost>

<VirtualHost *:80>
DocumentRoot ./htdocs
ServerName www.cvista-project.com

# Other directives here

</VirtualHost>
All the code required using apache2triad
Inside the httpd.conf

*Edit2*
And now it doesn't work...
Trying diff ips now since I have a range
 
Last edited:
Back