Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

apache problem


lion

Recommended Posts

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

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!

 

 

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

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..

 

That was a good suggestion.

 

You can sear the Host file

Link to comment
Share on other sites

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..

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...