How do i set it up so my php files in my sites folder can be viewed with just the command
localhost/
instead of the default
http://10.0.1.35/~john/
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 entry127.0.0.1 localhost. then you can just usehttp://localhost/. you can’t just uselocalhost/because that is not necessarily http and your browser may interpret that as a search or something.