LinuxQuestions.org
Visit Jeremy's Blog.
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 05-11-2011, 07:08 PM   #1
lorewap3
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
Question Apache Server troubleshooting


I'm having issues getting apache to respond to requests outside of my local LAN. If I goto my server URL (http://www.poillion.com) it says connecting... but never finishes and returns anything.

I'm using Ubuntu Server 10.10.

a) The DNS is working fine. It's pointed to my cable modem's IP and ping responds fine.
b) The apache server is setup and is working locally. In fact, if I use w3m and goto www.poillion.com I reach the test page perfectly.

I can't figure out where the missing piece is to close this gap. Here are some config files to illustrate my setup:

hostname
Quote:
poillion
/etc/apache2/httpd.conf
Quote:
ServerName poillion
/etc/hosts
Quote:
127.0.0.1 localhost
127.0.1.1 poillion
(along with ipv6 ones)

Note: I had my LAN IP and cable modem IP both setup in here as www.poillion.com and that didn't work.

/etc/apache2/sites-available/poillion
Quote:
<VirtualHost *:80>
ServerName www.poillion.com

ServerAlias *.poillion.com
ServerAlias *.willpoillion.com

ServerAdmin will@poillion.com

DocumentRoot /home/www
<Directory />
Options -FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/www/>
Options +Indexes +SymLinksIfOwnerMatch +MultiViews +ExecCGI
AllowOverride None
Order allow,deny
allow from all
</Directory>


ErrorLog ${APACHE_LOG_DIR}/poillion_error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug

CustomLog ${APACHE_LOG_DIR}/poillion_access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>



Any help diagnosing would be greatly appreciated! Thanks!

Will
 
Old 05-11-2011, 10:00 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
127.x.x.x is the localhost address; only avail internally to the OS to allow it to connect to itself.
You'll need the ethernet address eg 192.168.1.1
Try
Code:
ifconfig -a
to find it.
You'll need your modem/router to fwd incoming reqs to port 80 to re-direct/fwd to that addr on port 80.
 
Old 05-12-2011, 09:50 AM   #3
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by lorewap3 View Post
a) The DNS is working fine. It's pointed to my cable modem's IP and ping responds fine.
I think this is your problem. DNS is pointing to your cable modem's IP address, but your cable modem isn't running Apache.

You'd have to change DNS to point to your server, or you'd have to make a change in your cable modem to forward those packets to your server. I'm not sure about the second one... you'd have to check with your modem's documentation.
 
  


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
The complete troubleshooting guide to Apache on FC9 beebopbogo Linux - Software 0 05-24-2009 11:48 PM
LXer: Troubleshooting with Apache logging LXer Syndicated Linux News 0 01-24-2008 03:50 AM
Troubleshooting SSL on Apache ALInux Linux - Server 7 10-16-2007 03:08 AM
Troubleshooting apache, php, and mysql. IssacT Slackware 21 08-20-2005 02:58 AM
Apache 2.40 troubleshooting FlamingoJeff Linux - Newbie 4 08-13-2003 10:08 AM

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

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