Accessing a site via localhost instead of IP

How do i set it up so my php files in my sites folder can be viewed with just the command


instead of the default

the bottom one works fine but where do i need to change it so in my browser i can just enter localhost


check your /etc/hosts; it should have an entry localhost. then you can just use http://localhost/. you can't just use localhost/ because that is not necessarily http and your browser may interpret that as a search or something.

Category:php Time:2010-08-20 Views:1
Tags: php osx apache

Related post

Copyright (C), All Rights Reserved.

processed in 0.480 (s). 13 q(s)