LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-16-2013, 10:47 PM   #1
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416
Blog Entries: 43

Rep: Reputation: 36
Cannot Access Apache from the Outside


I cannot access apache from the outside of my network. It is probably a problem with the configuration. I am trying to use virtual hosts, and trying to access the default site right now.
 
Old 10-17-2013, 02:08 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You can check which IP's and/or ports apache is listening on by issuing the following command:
Code:
netstat --tcp -plan
Also make sure that your firewall isn't blocking incoming traffic on the port/address used:
Code:
iptables -L -n
 
Old 10-17-2013, 04:39 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I guess its the router thats a showstopper here. Did you configure any port forwarding on it?

The idea is that connections from the internet get to your router but as it has no webserver running it drops the connection. If you configure port forwarding it sends all packages it receives on the configured port to another machine and port (if so configured).
 
Old 10-19-2013, 01:30 AM   #4
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
I figured it out. It was the router. I forgot to check the on box for the http server on the router. I checked the box, and the port forward worked okay.
 
Old 10-19-2013, 03:46 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
I'm glad to see you got this fixed.

BTW: Can you put up the [SOLVED] tag.
- above the first post -> Please Mark this thread as solved if you feel a solution has been provided.
- -or- -
- first post -> Thread Tools -> Mark this thread as solved
 
  


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
Help with Apache: free access from lan users and password access to wan users... how? maginotjr Linux - Server 4 01-01-2011 11:08 AM
Can't access internet after using Apache mhbell Linux - Networking 4 08-26-2009 09:28 PM
apache access question cylarz Linux - Security 4 04-25-2006 11:03 AM
Apache ip access pazvant Linux - General 4 02-01-2004 10:57 AM
Apache access by samba Dweezil Linux - Newbie 4 04-21-2001 06:45 AM

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

All times are GMT -5. The time now is 08:03 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