September 14th, 2000, 09:10 PM
I have apache installed on my win98 machine, I also have my machine networked to another machine in my house. On the installed machine I can view wep pages at http://localhost/somepage.html but how do I set it up so I can also view those same pages from a browser on the other computer? I am using file and print sharing between the two computers? Thanks
September 14th, 2000, 11:14 PM
So I assume your apache installed box had DIRECT internet connection, let's call this machine box1 with local IP - 192.168.0.1.
The other box should then called box2 with - 192.168.0.2.
The nameserver and gateway of your box2 should be pointed to 192.168.0.1. Also set the domain of both boxes to foobar.com. At this point, your box2 should be able to access the webpage using IP -> http://192.168.0.1/somepage.html
Next, edit C:WINDOWSHOSTS at box1 and box2 and put this line:
If this file is not found, create it manually.
This method is untested, so don't blame me if it doesn't work out.