LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Cannot Access Apache from the Outside (https://www.linuxquestions.org/questions/linux-server-73/cannot-access-apache-from-the-outside-4175481116/)

des_a 10-16-2013 10:47 PM

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.

druuna 10-17-2013 02:08 AM

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

zhjim 10-17-2013 04:39 AM

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).

des_a 10-19-2013 01:30 AM

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.

druuna 10-19-2013 03:46 AM

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


All times are GMT -5. The time now is 08:13 AM.