Forum Home
Press F1
 
Thread ID: 39044 2003-10-25 20:41:00 Apache help 45South (4769) Press F1
Post ID Timestamp Content User
186574 2003-10-25 20:41:00 As per my previous post I've been setting up a RedHat9.0 box to test my websites, scripts etc before uploading to customers space.
I've got Apache & Samba installed, fielsharing is working both ways (Linux to all other Windows machines on my network & vice versa)
I can access the sites I've installed on RedHat from Mozilla on the Linux box but I can't view them from any of the windows machines. Whenever I do the windows machines try to access the net.
Anybody know what I've done wrong? or know what I've forgotten to configure?
Thanks
45South (4769)
186575 2003-10-25 22:21:00 I'm guessing that you're trying to view them through IE? I had the same problem a while ago and never found out how to fix it. Doesn't really worry me though since I'm not an IE user :) segfault (655)
186576 2003-10-25 22:24:00 IE & Opera, it must be some sort of networking issue, I just can't figure out what. 45South (4769)
186577 2003-10-25 23:01:00 do you have IE set to "always dial my default conection" ??

how are you accessing them?
by IP??
by a URL using DNS in the house?
robsonde (120)
186578 2003-10-26 01:16:00 This is not a browser problem. It is a network /setup problem. A HOSTS file on each of the clients might help. :D Graham L (2)
186579 2003-10-26 01:50:00 Hi Graham L, you couldn't give me a real brief rundown on the HOST file thingy could you? Or point me to a resource (in plain english for a dummy)
I want to access the websites hosted on the linux box from XP, 98, 95, using a variety of browsers.
Thanks for your time
45South (4769)
186580 2003-10-26 02:04:00 One of the Windows experts will dive in and give you all the gory details .
Basically, a HOST file is looked at first to resolve the name of a host into its IP address . If there's no such file or the name isn't there, the system looks in any acache it has, and then asks a DNS server .

You can probably access your web server by using http://192 . 168 . 0 . 99/ ( --- use the actual IP address your server has) ; if you can't there's something really wrong . :D

A *nix hosts file might have a few entries like

127 . 0 . 0 . 1 localhost
192 . 168 . 0 . 99 www . my . net www ftp

That's assuming you use DHCP for most of your hosts, and a fixed IP address for the www/ftp server . The second line in that gives a "fully qualified domain name" and a couple of "aliases" which could be used in your LAN . That IP address can't be routed to from the "outside world", anyway so you can use an impressive looking name or not .


The Windows HOSTS file is pretty similar, but it goes in different places in the different flavours of Windows .
Graham L (2)
186581 2003-10-26 02:37:00 Thanks Graham, I've already tried accessing the way you have described so there must be something really wrong.
I'll check the RedHat host file again to see if there is anything obvious there.
Thanks
45South (4769)
186582 2003-10-26 03:58:00 Umm...uncommenting the ServerName line in the httpd.conf helped.
Have to be so careful.
Far out, it's working great but don't go to sleep just yet I'm about to try setting up the ftp.
Thanks for your help so far.
45South (4769)
1