?
Solved

Can browse to localhost but client machines cannot access the http site

Posted on 2009-07-13
5
Medium Priority
?
242 Views
Last Modified: 2013-12-16
Hi
I have a subnet 192.168.0.0/255.255.255.0. My Apache 2 webserver is on 192.168.0.119. I have another host on .111. I can browse from .119 (localhost) fine, but when I try to access the web pages from .111, I get an error "unable to connect" (in firefox). I can ping the machine, connect to it with SSH etc. I set the permissions on the DocumentRoot  dir and files in it to 755. Any ideas?

Thanks
tr5
0
Comment
Question by:tr5
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:tr5
ID: 24838015
Web server machine is a Fedora Core 10 . Other client is a XP.
0
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 2000 total points
ID: 24838060
It seems that you have your Firewall active and blocking your HTTP connections.

juet edit your /etc/sysconfig/iptables

and add this line :
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

after

-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT


Save aned exit. Issue this command:

service iptables restart

0
 

Author Comment

by:tr5
ID: 24838292
Well done. That was it. Just one thing: I changed your line to:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
to look the other lines in the iptables file (It didn't restart iptables with your syntax.)


0
 

Author Closing Comment

by:tr5
ID: 31602740
Good job. Thanks.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24838339
Ok. It seems that Fedora is using INPUT instead of RH-Firewall-1-INPUT. It is RHEL default. You're welcome.
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question