VHOSTS works on IE/FF but not in Chrome
Posted by: TravelingWebGuy (---.mp.cpe.bigair.net.au)
Date: January 08, 2013 06:12AM

Hi Everyone,

So I've got a strange situation here...

I've setup two vhosts file with my latest install of WAMPP, those domains are:
example-sites.dev
localhost

I added both these to my local hosts file:
127.0.0.1 localhost
127.0.0.1 example-sites.dev

And I created both the VHOST files on the /wampp/bin/apache/apache2.2.22/conf/extra/httpd-vhosts.conf:
<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias localhost
<directory "c:/wamp/www">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</directory>
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "c:/wamp/www/universal_portal/dev/wordpress"
ServerName example-sites.dev
ServerAlias *.example-sites.dev
<directory "c:/wamp/www/universal_portal/dev/wordpress">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</directory>
ErrorLog "logs/example-sites-dev-error.log"
CustomLog "logs/example-sites-dev-access.log" common
</VirtualHost>

I restarted my server and localhost works just fine, but my example-sites.dev does not resolve in GOOGLE CHROME only. It works just fine in both Internet Explorer and FireFox, but does not resolve in Chrome...?

So I opened up CMD and did a ping and nslookup and ping returns the IP address, but nslookup can't resolve the domain example-sites.dev

Results of NSLOOKUP (local desktop):
C:\Users\lavellt>nslookup localhost
Server: ausydwsdom002.global.umusic.net
Address: 10.161.11.85

Name: localhost.global.umusic.net
Address: 127.0.0.1


C:\Users\lavellt>nslookup example-sites.dev
Server: ausydwsdom002.global.umusic.net
Address: 10.161.11.85

*** ausydwsdom002.global.umusic.net can't find example-sites.dev: Non-existent domain

So I am a bit confused on why all my other browsers will pick up the VHOSTS designation, but Google Chrome will not. I have no Proxy settings set in Chrome, so it's not that.

If anyone has any insight, I'm keen to hear some thoughts/ideas.

Cheers
Tim

Options: ReplyQuote
Re: VHOSTS works on IE/FF but not in Chrome
Posted by: RiggsFolly (---.as13285.net)
Date: January 08, 2013 01:14PM

try adding the http:// to the front of your address in chrome.

http://example-sites.dev

I have had this sort of issue and that was how I worked round it.

Options: ReplyQuote


Sorry, only registered users may post in this forum.