sayedsohail Posted October 15, 2007 Share Posted October 15, 2007 Hi everyone, Just today i installed apache 2 on my windows 2003 server (LAN), on the client if i typed http://192.168.1.1, it shows the index.html file works great. But how do i call the index.html file if the user on the network typed http://localhost in their browser? In my httpd.conf file i changed ServerName localhost, but still on the network, http://localhost doesn't work? Any help is highly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/73359-apache-setup-windows-2003-server/ Share on other sites More sharing options...
trq Posted October 15, 2007 Share Posted October 15, 2007 localhost refers to the local machine. You can't (or at least shouldn't) try and make localhost refer to another machine. You could edit you hosts file to do so, but there is no way I would recommend it. It could cause any number of issues. Quote Link to comment https://forums.phpfreaks.com/topic/73359-apache-setup-windows-2003-server/#findComment-370202 Share on other sites More sharing options...
sayedsohail Posted October 16, 2007 Author Share Posted October 16, 2007 You mean to say, i should open the hosts file on windows 2003 server and add 192.168.1.1 alpha and than open the httpd.conf and add: <VirtualHost 192.168.1.1> DocumentRoot "C:\xyz\abc" ServerName alpha </VirtualHost> Correct me if i am wrong please. i need this to be working today, so the users can access the files over the network when they type http://alpha in their browsers? Quote Link to comment https://forums.phpfreaks.com/topic/73359-apache-setup-windows-2003-server/#findComment-370509 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.