Click to See Complete Forum and Search --> : Need help setting up internal Apache website


Culley
08-30-2004, 12:03 PM
I am seating up a RH 9.0 Linux server to be use at a non-profit food pantry for backup, samba and local network web host. Samba is running and works just fine.

Heres what I need. I have setup a web site (localhost) on my Linux server and it work just fine. Now I need to access that site from the PC that runs the food pantry. I am using Apache for the web server and mysql/php for the programs. All pcs are run thru a linksys router which assigns the ip address as 10.10.10.1xx. (This site will not be access over the internet but just on the local network).

I am a lose to even begin to config this. Is there a VERY SIMPLE tutorial that can help or can someone walk me thru this in detail. I am not new to Linux but new to configing a web site used by other pcs behind a router.

Thanks for all you help in advance

ph34r
08-30-2004, 12:24 PM
Setup will be the exact same. However, you may want to put something in the apache config file for ServerName and then put a matching entry in teh hosts file (yes, Windows has a hosts file too) so the client doesn't have to enter IP addresses.

Gertrude
08-30-2004, 12:49 PM
The default RedHat firewall will need to be modified if it is running to allow clients to access the server. Also in the apache config file you can tell it what IP to "listen" on.

eriksays
08-30-2004, 03:57 PM
when i'm accessing my server from an internal cpu, i type in the server's ip address (i.e. 192.168.0.1) instead of localhost.

aamendt
08-31-2004, 02:21 PM
Well, my apache server somehow got reconfigured and I can't remember what to do to get it working I need someone to bounce ideas off of. If someone is using voip I would enjoy the call. amendt @ skype

neuro4848
09-01-2004, 12:21 PM
I'm not following...

Is this apache server on the same LAN as the client PCs?

You state that you're able to hit the apche server as http://192.168.0.1 and you get the page just fine, but when you do http://localhost, it does not work. Well, that would make sense because if you're typing http://localhost, then it would resolve to the same computer your making the request from, which would never work unless there's a webserver running on the machine....

Can you post the IP addresses of the client and server machines? Also, the HOSTS entry in the apache server and the "ServerName" directive in httpd.conf would be helpful as well.