Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with localhost entry in hosts file 3

Status
Not open for further replies.

bazil2

Technical User
Feb 15, 2010
148
DE
I have inadvertently deleted an important line in /etc/hosts namely that for the local host.

Can anyone confirm the correct entry; do I also need a short name?

127.0.0.1 localhost

Best regads
 
It's not a bug that it wasn't listening on localhost when the entry was "Listen 123.456.789.200:80", because you are explicitly telling it to only listen on that IP address. Just "80" means to listen on that port on *any* IP address.

Not sure why it was listening on 443 though unless there is another Listen directive in your configuration; it's possibly it listens on 443 by default in the absence of a directive for that port... but I'd be surprised.

Annihilannic
[small]tgmlify - code syntax highlighting for your tek-tips posts[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top