Skip to content

Getting Apache Accessible on a Home Network

May 9, 2012

I started my Apache Webserver version 2.4 up on my Centos version 5.7 server. I could access my webserver by typing or localhost in the web browser and it would respond with “it works!”. But when I tried to access the Webserver from another computer by typing the internal network ip address allocated to the Centos Server it would fail to load up the website file from Apache Webserver. After digging around and double checking I found there were 2 issues not letting me access the Apache Webserver from other local computers connected to the same network, they were: –

  1. A directive called “Require” (
  2. The System Firewall Setup

The directive “Require” was setup by default to not give access to anyone. I resolved this by going to the configuration file of httpd: –

prompt> cd /usr/local/apache2/conf/
prompt> vi httpd.conf

Once in httpd.conf I found the directive “Require” was set to “Require all denied”, I changed this to “Require all granted” and then saved the file. This allows users to get access to the Webserver.

Once the directive “Require” had been changed I configured the systems firewall to enable both incoming and outgoing http and https traffic to the Centos Server: –

prompt> system-config-firewall-tui

I then proceeded to the Cutomize Menu and scrolled down and hit return to select Secure HTTPS and WWW (HTTP) traffic to be enabled on the Centos Server.

Once I completed the above 2 actions I was able to access the Webserver from other local machines. Furthermore I used my Broadband Routers port forwarding feature to forward port 80 (this is the port Apache’s Webserver listens to by default) to the Centos Server which in turn lets Apache Webserver communicate on port 80 with the HTTP(S) requests to provide the remote public internet user with web content!


From → Linux

One Comment
  1. Howdy very nice blog!! Man .. Beautiful .. Wonderful .. I will bookmark your web site and take the feeds also?I am happy to seek out so many useful information here in the post, we need work out extra techniques on this regard, thank you for sharing. . . . . .

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: