Multiple Domains
Posted by: marcur12 (---.dhcp.cpgr.mo.charter.com)
Date: November 03, 2006 01:21AM

Hello. I've been trying to add 2 domains on one computer. I've gotten one domain to work, but when I try to add the second domain, it takes me to the first domain. I've followed these steps: [forum.wampserver.com] . I'm using www.dnsexit.com which shouldn't make a difference. Here's how I've set up my VirtualHost script:

<VirtualHost *:80>
ServerAdmin marcur19@charter.net
DocumentRoot "C:/wamp/www"
ServerName www.mdcman.com
</Virtualhost>

<VirtualHost *:80>
ServerAdmin marcur19@charter.net
DocumentRoot "C:/wamp/www/tustats"
ServerName www.tustats.com
</Virtualhost>

P.S. I've restarted apache serval times and that still didn't work. Thanks.



gsdgsd

Options: ReplyQuote
Re: Multiple Domains
Posted by: logisch (---.dip.t-dialin.net)
Date: November 03, 2006 01:44AM

the * in the virtual hosts line is a wildcard.
the embedded hints in the config tell you
that you should only provide on wildcard
for each ip.

i suppose apache is always falling into
the same section and using the given
server name there.

try naming the sections in the virtual hosts line.
if you need a fallback, then either point it to a
server setup of your choice or create a real
dummy for it. e.g. a web forwarder.
this will prevent other people from letting
their DNS point to your servers IP address
like that you appear as a 3rd level service somewhere else...

Options: ReplyQuote
Re: Multiple Domains
Posted by: CyberSpatium (71.237.217.---)
Date: November 03, 2006 02:01AM

make sure you have enabled support for virtual host. find this line:
#NameVirtualHost *:80

if it has the # in front, remove it to enable it. then save the file and restart apache for the new setting to take effect.

CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote


Sorry, only registered users may post in this forum.