LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-07-2010, 04:02 PM   #1
eliassal
Member
 
Registered: Jan 2008
Posts: 98

Rep: Reputation: 0
Angry Cannot Access Apache Web URLs Remotely


I have a fresh fedora 13 install, I managed to browse and setup my phpadmin.....and browse everthing locally. I can not browse the web site from any other machine in my network. All my machines get their IPs from my dhcp (192.168.1.0).

I googled and read a thread in this forum, I understood it might be due to SELINUX. I disabled it, rebooted, still have the same behavior, browse my apache locally but not from other machines. I did a telnet from one of my machines using the IP as follows
telnet 192.168.1.11 80got the following
Connecting To 192.168.1.11...Could not open connection to the host, on port 80: Connect failed.

I checked error-log and access_log file, found no hint. I think it should be something related to some fedora systemor firewall or selinux config that is not allowing access to it.

I am trying to establish a POC to validate the concept of interoperability of web services, I am not a system expert, I would really appreciate any help.
Thanks in advance
 
Old 06-07-2010, 04:12 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
as you mention, it sounds like a firewall thing initially, so make sure port 80 is open in iptables.
 
Old 06-07-2010, 05:33 PM   #3
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
All of your machines are in same subnet/network? If so, it should work. Also please try opening the port 80 in iptables.

Open flle /etc/sysconfig/iptables:
vi /etc/sysconfig/iptables
Append rule as follows:
RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
Save and close the file. Restart iptables:
/etc/init.d/iptables restart
 
Old 06-07-2010, 07:17 PM   #4
eliassal
Member
 
Registered: Jan 2008
Posts: 98

Original Poster
Rep: Reputation: 0
Thansk so much, I tried to append the instructions but got got "argument "RH...." is not correct, I used
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
restarted but it didn't help
I notivced that there is a a GUI to modify firewall, I used to allow port 80, I was able to telnet from my laptop and browse my apache from it

So many thanks again
 
Old 06-08-2010, 09:31 AM   #5
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
Sorry buddy!. There is a mistake in the firewall rule I gave to you. Here is the correct one,

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

Anyway, Glad to hear that you are able to open the port 80 through GUI.
 
  


Reply


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
Cannot Access Apache Web URLs Remotely Without Port Number nikhil010586 Linux - Server 8 03-07-2009 04:27 AM
Apache Restrict ALL access to file from web blizunt7 Linux - Security 2 08-15-2007 02:08 PM
Can't access Apache remotely zwyrbla Linux - Software 7 03-23-2005 07:14 PM
Apache and Outlook Web Access tsales314 Linux - Networking 3 02-23-2005 02:21 PM
Apache Web Server - access from the www vesta41 Linux - Software 8 01-07-2004 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:56 AM.

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