I m having a problem with a very simple nginx docker implementation on a raspberry pi 2B. I’m trying to setup secure access via port 443, using self signed certs.
HTTP request [port 80] works fine; HTTPS gives " This site can’t be reached" alert.
Raspberry Pi 2B - RaspOS
Docker & Docker Compose Installed
Created self signed Certificate with OpenSLL - privatkey and crt
Nginx container has 2 ports open : 80 and 443
Both ports are open and forwarded to the Rasp in my router
My domain name works in http access.
3 binded volumes:
- … : /etc/nginx/conf (contains nginx.conf)
- … : /usr/share/nginx/html
- … : /etc/nginx/certs
Loaded the certificates in the mounted volume
Specified the certificates container location (etc/nginx/certs/…) in the nginx.conf file.
Added the cert file to my Google Chrome on MacOS browser; and cleared the cache.
nginx container starts without errors, and I checked that the certificates are loaded into the container at the correct location in the container (etc/nginx/certs/…). So far so good I thought, but https access keeps producing the " This site can’t be reached" message.
Did I miss something?