can't connect to webserver over http outside LAN

0

I ran into a problem when working on my webserver.

Before I chaged anything connecting to http://my.domain/ sent me to the proper index.php page.

When I started to work on this server, running Debian 5.0 Lenny (Yes, a very old version of Debian), I updated the packages to the latest version of Debian Lenny.

Then I changed index.php to Xindex.php and made a new html file called index.html. connecting to http://192.168.1.xxx/ sends me to this index.html file. Everything's fine. Now I tried http://my.domain/. but then I get the error: ERR_ADDRESS_UNREACHABLE

The weird thing is that my FTP server does work. before and after: ftp://my.domain/ (same device)

Since it has worked, I assume that my ISP isn’t a problem. Because the HTTP connection works inside the LAN, I also assume that the server software is working properly.

my port forwarding 'shoud' work, (at least, FTP port 21 does):

21 > 21  192.168.1.xxx
80 > 80  192.168.1.xxx

Where could things be going wrong?

I have a WD (my book live) running Debian 5.0 Lenny, (actual OS: WDcloud 2.6). It uses Apache2 and httpd (it's an embedded device but I can SSH into it.)

EDIT: I found httpd.conf to be empty.

KoneLinx

Posted 2018-02-17T16:01:33.863

Reputation: 11

(1)Wow a lot going on here, is this a server or some embedded device (storage device with enhanced features [aka 'cloud'])? (2)My first thought is DNS, does the my.domain work inside the LAN? (3)Who is your internet DNS host, if you have home internet its likely DHCP meaning your internet IP changes & you have to update your DNS somehow (router can do) so they can relate my.domain to your changing DHCP internet IP – gregg – 2018-02-17T17:37:32.967

Have you tried ping my.domain from the command line? What about traceroute? – Olaf Dietsche – 2018-02-17T18:06:18.170

ping works. 0% loss, @OlafDietsche. how is the FTP working with the same domain "if" the IP address is wrong, @gregg? – KoneLinx – 2018-02-17T18:27:38.900

your isp might block port 80, sometimes at random. test another port? – Journeyman Geek – 2018-02-18T00:18:40.980

Okay, My ISP says: "We are currently working on our services" and I cannot access my router anymore, this might be the problem I'm not sure since this wasn't the case just an hour ago. It's late in the evening, I'll check it again tomorrow. – KoneLinx – 2018-02-18T00:25:22.677

Answers

0

I guess that your web server is an Apache web server. Try to restart Apache:

service apache2 restart

Then read the lastest messages in /var/log/syslog:

tail /var/log/syslog

Those messages could help you.

Have you checked your virtual site in /etc/apache2/?

Your DirectoryIndex for your my.domain virtual site could point to index.php instead index.html.

P L. Lucas

Posted 2018-02-17T16:01:33.863

Reputation: 1

Well, Thank you, I found out that Apache2 is indeed the websever. I also found httpd to be installed. However, service is not installed. I'll try to find what package I need for this. Also, what do you mean by virtual site in etc/apache2/. I only see some configuration files there. syslog also doesn't exist but there are a few other .log files with useful information. – KoneLinx – 2018-02-17T23:49:24.963

I used /etc/init.d/apache2 start " stop instead. – KoneLinx – 2018-02-17T23:55:49.673

Still the same problem. FTP works, SSH works, but no HTTP through my.domain. 192.168.1.xxx does work for everything. – KoneLinx – 2018-02-17T23:59:17.570

Could this all be because httpd.conf is empty? – KoneLinx – 2018-02-18T00:29:31.553