Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th February 2009, 08:48 AM
alansilicon Offline
Registered User
 
Join Date: Feb 2009
Posts: 1
Smile problem with accessing http server

dear everyone, i am really new to fedora. I managed to setup a website but I find that I couldn't access it in local lan. I disabled selinux already. Anything I can do to make it works? Please keep it simple, cos i might not understand. thanks
Reply With Quote
  #2  
Old 17th February 2009, 08:10 AM
kampal Offline
Registered User
 
Join Date: Dec 2008
Posts: 2
check accessability of your web server by ping

please show us output:

netstat -lpn | grep :80

and check your iptables -
iptables -L -n

also you can check you logs
tail /var/log/http/error_log
tail /var/log/http/access_log

best regards.
Reply With Quote
  #3  
Old 19th February 2009, 05:49 PM
forethought Offline
Registered User
 
Join Date: Feb 2009
Posts: 17
Sounds like the port isn't open. Here's what to do:

1.) Open a Terminal, switch to root
$ su -
Password: [Enter root password]

2.) Check to see if port 80 is open
# iptables -L

You're looking at the first block where it says 'Chain INPUT (policy ACCEPT)', see if there's a line that looks something like this:

ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http

3.) If there is no such line, you have to add an entry to the file that is loaded at boot into iptables
# nano /etc/sysconfig/iptables

Look for the following line:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

Directly under that, let's put a new line that will define the rule to allow traffic to the webserver:

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

If you plan on using https:// on your site, you'll have to add this too (on a new line):

-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT

Hit Ctrl-X to exit, then 'y' to confirm the changes, then 'Enter' to save under the same filename.

4.) Restart iptables
# service iptables restart

Now if that doesn't solve your problems, please check your log files as suggested earlier.

Hope that helps.
Reply With Quote
  #4  
Old 23rd February 2009, 07:32 AM
floppydisk's Avatar
floppydisk Offline
Registered User
 
Join Date: May 2007
Posts: 6
yup, most likely a problem with firewalling.......
__________________

Registered Linux User Number 485752
Reply With Quote
  #5  
Old 23rd February 2009, 12:13 PM
kevmif Offline
Registered User
 
Join Date: Dec 2004
Location: Australia
Posts: 483
if you get a 400 bad request its some stupid paranoid security setting that prevents you from accessing the server via IP!

You gotta change some apache config file.
Reply With Quote
  #6  
Old 23rd February 2009, 12:16 PM
LaKing's Avatar
LaKing Offline
Registered User
 
Join Date: Nov 2004
Location: Budapest
Posts: 313
On Simple:

Find "Firewall"
port 80 is http/apache ... check the checkbox, so you open the port.
Apply.

In "Services", make sure httpd is up and running.
Reply With Quote
Reply

Tags
accessing, http, problem, server

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
http server system problem adietri Servers & Networking 6 18th June 2008 07:21 AM
How to setup a http server(web server) tumelo_lathane Servers & Networking 2 3rd October 2006 01:05 PM
http server problem epattam Servers & Networking 6 6th September 2006 05:28 PM
Problem samba server accessing xp Alerander Servers & Networking 0 20th August 2005 03:14 PM


Current GMT-time: 20:56 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat