wmnnd / nginx-certbot

Boilerplate configuration for nginx and certbot with docker-compose
MIT License
3.16k stars 1.17k forks source link

Unable to connect to the app via https or browser #126

Open nicksowl opened 2 years ago

nicksowl commented 2 years ago

Hi, Hope this project is still somewhat alive and someone can give me a hand :)

After following the tutorial back and forth, I'm continuously getting the following error in my browser when trying to connect:

ERR_SSL_PROTOCOL_ERROR (Chrome) / SSL_ERROR_RX_RECORD_TOO_LONG (Firefox)

If I try to https via cli I'm getting this:

https: error: SSLError: HTTPSConnectionPool(host='xxx.xxx', port=80): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))) while doing a GET request to URL: https://xxx.xxx:80/

I can https to other ports, and I'm getting 301 from nginx.

Thanks in advance and have a beautiful day.

IainStevenson commented 2 years ago

Not sure exacty what youa re doing but the port 80 is more thatn a bit suspicious! 443 surely.

Hope that helps. Port 80 (not 443) is mentioned here as a problem.