Forum Moderators: phranque

Message Too Old, No Replies

Need help internal network with Apache web server

         

culley

6:30 pm on Aug 30, 2004 (gmt 0)

10+ Year Member



I have setup a web server on my RH 9.0 server. Works great from localhost but I need to acces it from other pcs on my local network (WWW will not have access). All pcs and server are hooked to a linksys router which gives ip address of 10.10.10.1xx. My server is 10.10.10.101 Hostname Homer. I try to access the web page from another pc by typing [10.10.10.101:80...] and get error 'page cannot be displayed.
What have I done wrong or not done right.

Thanks

isitreal

10:39 pm on Aug 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You need to set up a hosts file on the other computers that points the server.

10.10.10.101 Homer

Then when you type in 'Homer' into another browser it will know where to go for that name.

In windows the hosts file is located here:

c:\windows [or winnt]\system32\drivers\etc\hosts

hosts has no extension, so it's hard to make one with wordpad or notepad, any other real text editor can do it easily, but you probably already have one, if you do just add that line to it. Linux also has one but I don't remember where it is.

culley

12:49 pm on Aug 31, 2004 (gmt 0)

10+ Year Member



isitreal:
Thanks for your reply. I did as you suggested but still can not get to my web site. Could the ip address the router assigns my pcs/server have something to do with it.(10.10.10.1xx vs 192.168.1.1xx)
I have not changed any conf settings with apache (new to apache) so I may not have things right there but I don't really know where to start. I guess I really need a good example to go by

moltar

1:02 pm on Aug 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you sure you are not running a firewall on RH9? Check into that.

culley

2:27 pm on Aug 31, 2004 (gmt 0)

10+ Year Member



moltar:

SUCCESS. iptables was to on during boot. I disabled it and tried to connect from another pc and there it was.

MANY thanks for all your help and I'm glad I joined this forum

Is there a tutorial around that could have hep me on this problem setting up apache?

Thanks again!

mack

2:35 pm on Aug 31, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



If you have altered your host file it may not actualy take effect until you refresh your dns.

enter command prompt and type...

ipconfig/flushdns

this will ensure the new setting take effect.

Mack.

isitreal

3:29 pm on Aug 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I haven't had any problems with the host files not refreshing, I add sites frequently to my development server and find hosts updates on the other network machines works pretty well as a rule, but all the other machines are running w2k.