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!

localhost not working

Status
Not open for further replies.

danielhozac

Programmer
Aug 21, 2001
2,058
SE
i'm just trying my website on my computer, and i want to use localhost. that way i can keep it offline, i thought. but when i type in my ip in the address bar, i still get to my site, and it is accessable to others too. can i prevent that from happening?

//Daniel
 
Hi,

To restrict Apache to listening only on the loopback interface, you would just change your Listen directive in httpd.conf to :

Listen 127.0.0.1:80

(instead of 'Listen 80' )

Regards

 
currently i am using ServerName localhost and ServerPort 80, i thought the listen was only for use when i wanted to use several ip's/domains. so i should use listen instead?

//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top