Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-11-2008, 10:26 PM   #1
Senior Member
Registered: Feb 2003
Location: Washington D.C
Posts: 2,184

Rep: Reputation: 60
Apache Accepting only external requests

I have setup virtual hosts in Apache and the server is allowing the web pages to be viewed from the public but it is not allowing users inside the LAN to view the web pages on the same server. Is there a setting in /etc/httpd/conf/httpd.conf that has to be set to allow local requests? If so can you give me what I need to add?
Old 08-11-2008, 11:20 PM   #2
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
This is most likely to be caused by Network Address Translation at the boundary between your internal and external networks.

You probably have defined a virtual host with an external address in the <VirtualHost> tag. In order to make the same pages available to your internal LAN hosts (which are probably using a set of Private Networking addresses [like 192.168.1.x], you will need to declare a second VirtualHost with the same ServerRoot, but specifying the internal address.

Once this works, you may also want to consider making the internal view and the external view of your website different. This is readily accommodated by creating two base directories, one for internal and one for external files, and specifying ServerRoot for your internal view as one of these and for your external view as the other, and then putting symbolic links in one of them pointing to the other. This scheme will allow you to control what is available to internal clients separately from what is available to external clients quite easily.
Old 08-11-2008, 11:26 PM   #3
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Or you can define the virtualhost using *:80 notation rather than IP_address:80.

It's also possible that you have set the Listen directive to look only at the external IP
Old 08-11-2008, 11:43 PM   #4
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
What's more likely is that the DNS is giving the external IP to internal clients, and the firewall is not allowing double-traversal.

The correct thing to do would be to run split-view DNS and give internal clients the internal IP, and external clients the external IP.

Another way to do it would be to have all internal clients set a host file entry with the local IP address.
Old 08-12-2008, 12:35 AM   #5
Senior Member
Registered: Feb 2003
Location: Washington D.C
Posts: 2,184

Original Poster
Rep: Reputation: 60
I will look into all 3 of those suggestions. I will give you some feedback when I figure it out. Many thanks


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS server not accepting Telnet requests Azzath Linux - Server 10 02-21-2010 08:48 AM
SSL not accepting requests. ryedunn Linux - Security 10 10-22-2004 08:13 AM
Fedora Core 2 - not accepting any requests jclstone Linux - Newbie 2 09-28-2004 07:11 AM
nocatauth not accepting requests on port 80 majortool Linux - Wireless Networking 0 07-13-2004 01:08 AM
nic working but not accepting incomming requests digitalgravy Linux - Networking 4 01-26-2004 06:42 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration