Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I wan to set a webserver (apache) to work on a lan (4 to 7 PCs connected via a switch ) for educational purpose only (learning how a web server work)?. what I need to do ? if you have any link to online resources please share them. * ps : the server will run on linux

share|improve this question

2 Answers 2

up vote 2 down vote accepted

No network configuration beyond configuring the webserver with a static IP address; either via DHCP or hard coded. If the server needs to be accessible from the Internet, configure ports 80 & 443 on your router to forward to the IP address you configure the server with.

If you have a local DNS server, put an entry in for the server so you don't have to refer to it by IP. If you don't, put some host entries in your hosts file (/etc/hosts in *nix or C:\windows\system32\etc\drivers\hosts in windows).

share|improve this answer

Find a tutorial specific for your Linux distribution and follow it for the installation. There are a plenty out there for any distribution. If the operating system is Linux, go with Apache which is pretty common on that platform and easy to install with a standard configuration, almost every distribution has it in their repositories.

share|improve this answer
My problem is with the network configuration. how the network must be configured ? – Ayoub Dec 15 '09 at 16:48
Configure a static IP, or a static lease if you have control over the DHCP server and bind the Web Server to that address. You can also bind it to if it is a lan-only server and access from outside is forbidden. If you want to refer to it by IP follow Eddy's instructions for hosts file on clients. – Truemilk Dec 15 '09 at 16:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.