[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Apache



On Mon, Mar 26, 2001 at 12:19:10PM +0000, John Delaney wrote:
> > I have been trying to set up Apache on my LAN but don't seem to be having
> > much success. The linux box it is on says it is installed OK (i.e going to
> > 'localhost' in the browser gives me the Apache start-up page) but when I try
> > to look at this machine (192.168.1.2) from a browser on the windoze box I
> > just get a 'page cannot be displayed' message. I also tried setting up
> > Sambar on the windoze box to see if I could make things work the other way
> > round but, although again I can see Sambar as 'localhost' on the win box,
> > trying to access it across the network gives me a message saying that 'the
> > server is not accepting connections' or something similar. Needless to say,
> > the network is working OK apart from this and I can mont one machine on the
> > other, ping back and forth and run the various machines one from the other
> > using vnc so what am I missing? Thanks,
> 
> Try setting up a VirtualHost in httpd.conf, and modifying /etc/hosts 
> accordingly.

I would be surprised if VirtualHost was anything to do with it, although of course it is possible to go from a non-working configuration sans VH to a working configuration with it. It just looks like the server is not binding to the correct IP address, although usually that takes some doing :-)

On the Linux box, you can check for servers with 'netstat -pan'. I would suggest something like:
	su -c 'netstat -pan | grep httpd'
I usually bind Apache to 0.0.0.0 (i.e., listen to all IPs), but it is possible you have bound it to 127.0.0.1 - that would stop connections from the LAN.

If httpd is bound to 192.168.1.*, or 0.0.0.0, then something else is amiss. Given you can't get Sambar going either, that sounds more likely. Firstly - check your firewall (if you have one). What are your rules? Is your policy deny? If so (full marks :), you need to add rules to allow traffic going to and from port 80 in both directions.

Cheers,

Alex.
-- 
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.