LinuxQuestions.org
Register a domain and help support LQ
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 10-01-2011, 12:13 AM   #1
juiceb0x
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Rep: Reputation: Disabled
Configuring httpd/apache for remote connections


I have Apache/httpd installed on my Fedora 13 machine through repositories. From
localhost, I can browse the webpages I put in the /var/www/html directory. But the
connection always times out if I try viewing the page from another computer in my
network. So I can only browse the site from localhost, and I had the same problem
with XAMPP. I'd like to configure Apache so it will accept remote connections. Also I know its not a problem with the router/firewall or anything. Since I'm trying to connect to my website from computers within the same network, the router shouldnt block connections, right? Anyways I've started httpd with the following command as root:

httpd -k start

And this message pops up in the terminal, I don't know if this means it has failed or not:

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

Anyone know what I can do? I've tried Googling it, but most solutions I've found on
the Internet have to do with setting up the router, and I know the router is not the problem. Please help, thanks.
 
Old 10-01-2011, 12:51 AM   #2
rustek
Member
 
Registered: Jan 2010
Location: Melbourne, IA, USA
Distribution: Ubuntu
Posts: 93

Rep: Reputation: 8
It looks like the listen directive is wrong.

Look in httpd.conf for a line like

Code:
listen 127.0.0.1:80
It should have your real ip address.
You can listen on more than one address or port by adding another listen line.

Last edited by rustek; 10-01-2011 at 12:53 AM.
 
  


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
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 08:24 AM
Configuring httpd.conf for CGI in Apache 2.x clinton Linux - Newbie 2 01-01-2005 02:13 AM
Error configuring httpd-2.0.47 blathen Linux - Newbie 1 10-25-2003 08:44 PM
checking httpd connections DigiCrime Linux - General 20 07-16-2003 05:45 AM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 11:32 PM


All times are GMT -5. The time now is 01:51 PM.

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