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
Solved

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

Posted on 2009-07-13
5
238 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
  • 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 500 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 62
Why VNC doesn't work in Redhat? 11 71
I NEED A "BARE" LINUX ... 9 55
trouble on installing syslog-ng on CentOS 7 7 50
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

789 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