Mulitple Domains on One Sever?
Posted by: aero97one (---.twcny.res.rr.com)
Date: April 05, 2008 10:38PM

I am trying to host multiple domains from one computer, i would like to know if it's at all possible to give each site it's own document root, meaning that the urls in the address bar would show up like this:

http://{site-root}/index.html

instead of:

http://{my-ip}/ddcom/index.html


Is this possible? If so then how do i do it? We just started using WAMP not too long ago.

Options: ReplyQuote
Re: Mulitple Domains on One Sever?
Posted by: yfastud (Moderator)
Date: April 05, 2008 11:24PM

Yes, absolutely can do it w/ VH; if not sure how to, you can check Setup Virtual Host guide on my personal website

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Mulitple Domains on One Sever?
Posted by: aero97one (---.twcny.res.rr.com)
Date: April 05, 2008 11:30PM

can you show me an example? i wasn't looking for a guide.

Options: ReplyQuote
Re: Mulitple Domains on One Sever?
Posted by: toivo (---.nsw.bigpond.net.au)
Date: April 06, 2008 01:13AM

Hi,

If you do not like to read a guide, you can always study the apache documentation about virtual hosts at [httpd.apache.org] instead.

Good luck ;-)

Regards,

toivo
Sydney, Australia

Options: ReplyQuote
Re: Mulitple Domains on One Sever?
Posted by: aero97one (---.twcny.res.rr.com)
Date: April 06, 2008 03:59AM

well i was hoping for someone to correct my coding here it is again below

<VirtualHost *:80>
ServerName www.aero97online.com
ServerAlias aero97one
DocumentRoot D:/wamp/www/
ErrorLog D:/wamp/logs/error.log
CustomLog D:/wamp/www/deals--now/logs/access.log common
</VirtualHost>

<VirtualHost *:80>
ServerName eClub.aero97online.com
ServerAlias eClub
DocumentRoot D:/wamp/www/eClub
ErrorLog D:/wamp/logs/eclub.error.log
CustomLog D:/wamp/logs/eclub.access.log common
</VirtualHost>

Options: ReplyQuote


Sorry, only registered users may post in this forum.