Questions related to localhost, loopback. On most computer systems, localhost resolves to the address 127.0.0.1, which is the most-commonly used IPv4 loopback address, and to the IPv6 loopback address ::1.

learn more… | top users | synonyms

4
votes
1answer
3k views

How to access Apache2 virtual host from VirtualBox (or any VM)

I am running Ubuntu 11.04, I have setup my localhost so I access my sites at site1.local site2.local By setting up virtual hosts and adding entries to my hosts file. I want to test them in IE ...
2
votes
4answers
3k views

What would cause 'ping localhost' to fail?

the /etc/hosts file contains a line: 127.0.0.1 localhost so localhost should be a valid hostname, but any attempt to connect to a port on localhost fails, including ping. Connection attempts into ...
1
vote
2answers
489 views

I would like to set 127.0.0.1 in my resolv.conf

I was hoping to set my local host in my resolv.conf to hermes. So in affect if I type in hermes:8080 into the browser, I get the localhost:8080 How is this accomplished? Please and thank you.
4
votes
1answer
1k views

Renaming localhost

By default 127.0.0.1 has the localhost alias. I found several approaches to changing it to a different string, but what is the standard, effective and safe best-practice way of doing it? Can I give ...
3
votes
2answers
786 views

How can I share this local site to not use a sub directory?

I'm working on a site locally that's just sitting in a folder: localhost/tempplace How can I route, with Apache2, that to be like: tempplace:8890 Or just something so it's not a sub ...
6
votes
1answer
1k views

Where should I place aliases for localhost?

I often need to use aliases for localhost (127.0.0.1) for my development work of websites, such that I can access them locally while routed via apaches virtual host concept. In the past I have always ...