Access to Owncloud of from Internet, but not from LAN

ssl
hosting

#1

Hello,

I host an OC on a small home Nginx server, HTTPS is handled with a Let's Encrypt SSL certificate and the server is accessible from internet with no problem. When accessed from my router's LAN, things are different: network-wise, the host is accessible (e.g. I can SSH onto it), but the HTTPS server gives a "Échec de la connexion sécurisée" (Failure of secure connection) message. I guess there's something with Nginx or with the SSL certificate, but... what?

Any clue/idea would be great, thanks in advance!
Yann


#2

I guess when you're accessing to your server from the internet, you're accessing to https://example.com/owncloud/ or something along those lines. The HTTPS certificate should be matching that "example.com" server in this case, so the web browser can verify the certificate.
When you're accessing from LAN, I guess you're accessing via IP or maybe a different name to the server, so probably the HTTPS certificate can be properly validated because the certificate is for the "example.com" server but not for 10.10.101.1 or "example2.es" server.


#3

Hi,

It appears my diagnosis was false: in fact HTTPS has nothing to do with it. My problem was due to GeoIP filtering on Nginx, that prevented the server from answering to requests coming from local IP addresses. My bad... :slight_smile:

Best regards,
Yann