michi
michi

Reputation: 6625

virtual hosts on local machine ignored by Safari 7

I set up Apache on my OS X 10.9 machine and created a local virtual host www.example.dev

When I enter www.example.dev...

in Firefox 26, everything is fine and I get to see the local site

Safari 7, instead performs a Google search on www.example.dev

How can I get Safari 7 behave like Firefox?

Upvotes: 0

Views: 694

Answers (1)

mrjink
mrjink

Reputation: 1129

Apparently, Safari looks at the url to see if it's something that looks like a valid host. Does it work if you explicitely prepend http://?

Try http://www.example.dev/ and see if that works. Google Chrome has similar behavior, and prepending http:// fixes that.

Upvotes: 3

Related Questions