lion Posted February 24, 2005 Share Posted February 24, 2005 this is a standalong webserver, everying is on a local machine for test. IP:192.168.0.1, seup apache2 and PHP4, web document root points to D:\webroot use IE visit http://localhost--------->working use IE visit 192.168.0.1:80----------> page not found how to bind 192.168.0.1 to localhost, in future, if i connect server to internet, i will need to change server IP, how can i do it? thanks! Link to comment Share on other sites More sharing options...
Genijan Posted February 24, 2005 Share Posted February 24, 2005 this is a standalong webserver, everying is on a local machine for test.IP:192.168.0.1, seup apache2 and PHP4, web document root points to D:\webroot use IE visit http://localhost--------->working use IE visit 192.168.0.1:80----------> page not found how to bind 192.168.0.1 to localhost, in future, if i connect server to internet, i will need to change server IP, how can i do it? thanks! <{POST_SNAPBACK}> You should be able change in Apache to use this IP. Not an Apache expert, just thought may be similar to IIS Link to comment Share on other sites More sharing options...
linuxdave Posted February 24, 2005 Share Posted February 24, 2005 Just add a line to your hosts file. SOmething like 192.168.0.1 machinename localhost.localdomain localhost I'm not sure where the hosts file is on wnidows servers these days.. LinuxDave Link to comment Share on other sites More sharing options...
Genijan Posted February 24, 2005 Share Posted February 24, 2005 Just add a line to your hosts file. SOmething like 127.0.0.1 machinename localhost.localdomain localhost 192.168.0.1 machinename localhost.localdomain localhost I'm not sure where the hosts file is on wnidows servers these days.. <{POST_SNAPBACK}> That was a good suggestion. You can sear the Host file Link to comment Share on other sites More sharing options...
lion Posted February 25, 2005 Author Share Posted February 25, 2005 Just add a line to your hosts file. SOmething like 192.168.0.1 machinename localhost.localdomain localhost I'm not sure where the hosts file is on wnidows servers these days.. <{POST_SNAPBACK}> if my computer name is R2D2, is it "192.168.0.1 R2D2 lccalhost.localdomain localhost" i added this to my apache config file, but apache didn't let me restart. why? thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.