stevesimo Posted December 23, 2008 Share Posted December 23, 2008 Hi, does anyone know how I can set the name of my http server to say server1 for example so instead of http://localhost I can use http://server1 ? Thanks Steve Link to comment https://forums.phpfreaks.com/topic/138158-change-server-name-from-local-host/ Share on other sites More sharing options...
ngreenwood6 Posted December 23, 2008 Share Posted December 23, 2008 You will need to go search through the windows/system32 folder for a files called "hosts". Open the file with notepad and find this line: 127.0.0.1 localhost change the localhost to server1 Link to comment https://forums.phpfreaks.com/topic/138158-change-server-name-from-local-host/#findComment-722339 Share on other sites More sharing options...
Maq Posted December 23, 2008 Share Posted December 23, 2008 If you're using windows it's usually in, "C:\WINDOWS\system32\drivers\etc\hosts". Link to comment https://forums.phpfreaks.com/topic/138158-change-server-name-from-local-host/#findComment-722373 Share on other sites More sharing options...
ngreenwood6 Posted December 23, 2008 Share Posted December 23, 2008 I wanted to make him do a little bit of work since all you have to do is google it and click the first result lol. Link to comment https://forums.phpfreaks.com/topic/138158-change-server-name-from-local-host/#findComment-722374 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.