domain name and localhost problem
Posted by: The Crasher (91.86.125.---)
Date: September 14, 2008 01:47AM

hi all

i like to ask for a little help after i searched the hole forum (search button ^^ )

i got a small problem whit the configuration on my vps

its a windows based vps (just to let you know , win 2003 )

i used the tutorial i found for making virtual domain names (sending to a dir)

now i can acces demonpower.co.cc to the dir " demonpower"

but when i typ in , localhost , then it doesnt go to the www dir (the root)

the thing i try to do (to make it eayser) is to get acces to the index file from localhost and all the other domain names (1 for now ) from the internet

when i put in the localhost into the virtual server config file then stays wamp on yellow

from the moment i delete it again then it is back normal confused smiley

can you provide me the solution for this problem ??

NameVirtualHost *:80 

<VirtualHost *:80>
ServerName www.demonpower.co.cc
ServerAlias demonpower.co.cc domain
DocumentRoot C:/wamp/www/demonpower
ErrorLog C:/wamp/www/demonpower/logs/error.log
CustomLog C:/wamp/www/demonpower/logs/access.log common
</VirtualHost>

<VirtualHost *:80>
ServerName localhost
ServerAlias 127.0.0.1 domain
DocumentRoot C:/wamp/www/
ErrorLog C:/wamp/www/logs/error.log
CustomLog C:/wamp/www/logs/access.log common
</VirtualHost>

in firefox i get back to the normal dir (demonpower)
in internet explorer does it says that he cant find the localhost (Cannot find server or DNS Error
Internet Explorer )

when i delete the last line then get localhost redirected to the dir confused smiley

Thank you for your support

Greets From The Crasher

*edit , i fixed the problem , i saw that the map was called "log" instead of "logs"
after i searched the error log of apache then it wanst hard anymore to find the error

Thank you for your support smiling smiley



Edited 1 time(s). Last edit at 09/14/2008 01:58AM by The Crasher.

Options: ReplyQuote
Re: domain name and localhost problem
Posted by: toivo (---.nsw.bigpond.net.au)
Date: September 14, 2008 11:03PM

Hi,

Try changing the order of the virtual host definitions. The first listed virtual host is the default virtual host.

By the way, I would keep the documentroots of virtual hosts as separate, not embedded, folders. These folders do not have to reside in c:/wamp either.

Regards,

toivo
Sydney, Australia

Options: ReplyQuote


Sorry, only registered users may post in this forum.