Remote access to Apache Server

5.9k Views Asked by At

I have a LAMP server used to remotely access a MySQL database (through a dynamic DNS service). Until yesterday, everything was working fine. Here is what I checked so far, without any success (I keep receiving a timeout error when trying to access remotely the server):

  • Dynamic DNS service is ON on my router, updated for the correct external-IP address (using NoIP ddns.net).
  • The server is working just fine locally on 192.168.0.24 and I can access the MySQL database from it.
  • Ports forwarding is set correctly
  • Firewall at the router level has been temporarily disabled

Here's my Apache ports.conf file:

    Listen 80
<VirtualHost *:80>
    DocumentRoot "/www/example1"
    ServerName www.example.com

    # Other directives here
</VirtualHost>

SharkWire gives me this output on the failed request :

533 15.633088 192.168.0.14 79...*** TCP 66 [TCP Retransmission] 27536 → 80 [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=4 SACK_PERM=1 –

** Details of the SharkWire failed Request here: http://imgur.com/a/KtGuY **

Edit: I am not able to connect using the external IP (instead of the DynDNS address) either, so the problem seems to be on the server side more than on the IP resolution side.

I have no idea what to check anymore and would welcome any advice/idea.

2

There are 2 best solutions below

0
On

When you are trying to connect to your Apache server, are you connected on the same router ? I had a similar problem. And the problem was that the adress could only be access from another router (which seems logical).

0
On

I would put a folder named html and inside that a folder named img in the folder named example1 and land the page called index there.