LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-28-2014, 08:22 AM   #1
casperdaghost
Member
 
Registered: Aug 2009
Posts: 349

Rep: Reputation: 16
view apache home page from another machine.


I installed Apache on a machine with a host ip of 192.168.1.11.
when i http://localhost into a browser on that machine (192.168.1.11) i can see the apache web page "it works" . and if i type in 192.168.1.11 on that host, i see the apache web page "it works". however when i type in http://192.168.1.11 from another host on the same LAN - I get a connection timeout. I cannot see the page.

I tried opening up the port on the host machine 192.168.1.11

Code:
[FEDORA_CASPER@new-host-3 ~]$ sudo /sbin/iptables -A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT
[FEDORA_CASPER@new-host-3 ~]$
what is my next trouble shooting step. 192.168.1.11 is running fedora20

Last edited by casperdaghost; 05-28-2014 at 08:24 AM.
 
Old 05-28-2014, 08:43 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,476

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Turn your firewall totally off on 192.168.1.11 and see what happens.

For what it's worth my iptables entry to open port 80 is just:

Code:
iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
 
1 members found this post helpful.
Old 05-28-2014, 08:53 AM   #3
casperdaghost
Member
 
Registered: Aug 2009
Posts: 349

Original Poster
Rep: Reputation: 16
thank you...WORKS

Code:
[FEDORA_CASPER@new-host-3 ~]$ sudo iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
[FEDORA_CASPER@new-host-3 ~]$ sudo systemctl restart iptables.service
[FEDORA_CASPER@new-host-3 ~]$
 
  


Reply



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
Set nagios to apache start/home page drsketch1 Linux - Server 3 01-19-2011 10:34 PM
Change default Apache webpage to a user home page Ericxx Linux - Server 9 08-11-2010 05:22 AM
lost start page (home page?) multiplaone Linux - Newbie 1 05-29-2005 06:10 PM
Apache Server up, but acid and MRTG home page could not be view!! yitloo Linux - Networking 1 11-08-2004 04:20 AM
Unable to view web page from remote machine kiddy Linux - Networking 2 04-14-2004 09:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:55 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
Open Source Consulting | Domain Registration