Problems accessing added localhost
Posted by: Beyondtheloop (---.ias.bredband.telia.com)
Date: December 16, 2012 09:30PM

Hi, I've got problems accessing a new localhost, when I try to access I still end up at the 'old' localhost (WAMP page).

Windows host file:
127.0.0.1 localhost
127.0.0.1 swirl-dev.localhost

httpd-vhosts.conf:
NameVirtualHost *:80

<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@localhost
DocumentRoot "c:\wamp\www"
ServerName localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
</VirtualHost>

<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@swirl-dev.localhost
DocumentRoot "c:\wamp\swirl-dev"
ServerName swirl-dev.localhost
</VirtualHost>

httpd.conf:
uncommented 'Include conf/extra/httpd-vhosts.conf'

Added folder 'swirl-dev' to c:/wamp/ where a test index.html file exists.

Localhost works fine but when I try to access [swirl-dev] I get the same page as Localhost. What am I doing wrong here?

Options: ReplyQuote
Re: Problems accessing added localhost
Posted by: RiggsFolly (---.as13285.net)
Date: December 16, 2012 10:09PM

use address swirl-dev.localhost

if you enter the address wrong it will use the first vhost which is as it should be the wamp page.

Options: ReplyQuote
Re: Problems accessing added localhost
Posted by: Beyondtheloop (---.ias.bredband.telia.com)
Date: December 17, 2012 11:28AM

RiggsFolly Wrote:
-------------------------------------------------------
> use address swirl-dev.localhost
>
> if you enter the address wrong it will use the
> first vhost which is as it should be the wamp
> page.

Thanks but that's exactly the address I'm trying and I still end up at Localhost...

Options: ReplyQuote
Re: Problems accessing added localhost
Posted by: Beyondtheloop (---.ias.bredband.telia.com)
Date: December 17, 2012 11:37AM

...if I remove the Localhost instance I end up at 'swirl-dev' with both Localhost and swirl-dev. What am I missing here?

Options: ReplyQuote
Re: Problems accessing added localhost
Posted by: stevenmartin99 (Moderator)
Date: December 17, 2012 01:38PM

your missing <directory> tags

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.