I’ve successfully deployed a site (alexbracken.co) onto a DigitalOcean droplet, but I’m having some difficulties getting the www subdomain to work correctly. It’s currently giving me a ERR_SSL_UNRECOGNIZED_NAME_ALERT error.
I used Trellis to create and deploy to a DigitalOcean droplet, and am trying to refrain from poking around the production environment too much so Trellis and Ansible can do their thing. It seems like Trellis should be catching the www.alexbracken.co in the redirects section and adding it to the SSL certificate, but something is not happening in this process.
I’m adding the nginx log below, and I’m happy to provide any other information that could be helpful. ChatGPT seems to think there is something going on with my IPv6 configuration, but again, I’m using Trellis with pretty minimal intervention by myself, so I’m not sure exactly what is going on there.
Nginx log
2024/07/25 06:30:15 [crit] 174614#174614: connect() failed (101: Network is unreachable) while resolving, resolver: [2606:4700:4700::1001]:53
2024/07/25 07:37:04 [error] 174614#174614: *29344 "/etc/nginx/html/index.html" is not found (2: No such file or directory), client: 167.94.138.55, server: , request: "GET / HTTP/1.1", host: "143.198.164.61:443"
2024/07/25 10:42:55 [crit] 174614#174614: connect() failed (101: Network is unreachable) while resolving, resolver: [2001:4860:4860::8888]:53
2024/07/25 10:42:55 [crit] 174614#174614: connect() failed (101: Network is unreachable) while resolving, resolver: [2001:4860:4860::8844]:53
2024/07/25 10:42:57 [error] 174614#174614: r10.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r10.o.lencr.org, certificate: "/etc/nginx/ssl/letsencrypt/alexbracken.test-bundled.cert"
2024/07/25 11:15:20 [crit] 174614#174614: connect() failed (101: Network is unreachable) while resolving, resolver: [2001:4860:4860::8844]:53
2024/07/25 14:59:20 [warn] 240390#240390: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:5
2024/07/25 14:59:20 [warn] 240390#240390: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:6
2024/07/25 14:59:20 [warn] 240390#240390: protocol options redefined for [::]:443 in /etc/nginx/sites-enabled/no-default.conf:17
2024/07/25 14:59:20 [warn] 240390#240390: protocol options redefined for 0.0.0.0:443 in /etc/nginx/sites-enabled/no-default.conf:18
2024/07/25 15:03:13 [warn] 240892#240892: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:6
2024/07/25 15:03:13 [warn] 240892#240892: protocol options redefined for 0.0.0.0:443 in /etc/nginx/sites-enabled/no-default.conf:18
2024/07/25 15:04:15 [warn] 241350#241350: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:5
2024/07/25 15:04:15 [warn] 241350#241350: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:6
2024/07/25 15:04:15 [warn] 241350#241350: protocol options redefined for [::]:443 in /etc/nginx/sites-enabled/no-default.conf:17
2024/07/25 15:04:15 [warn] 241350#241350: protocol options redefined for 0.0.0.0:443 in /etc/nginx/sites-enabled/no-default.conf:18
2024/07/25 15:04:16 [warn] 240901#240901: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:5
2024/07/25 15:04:16 [warn] 240901#240901: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:6
2024/07/25 15:04:16 [warn] 240901#240901: protocol options redefined for [::]:443 in /etc/nginx/sites-enabled/no-default.conf:17
2024/07/25 15:04:16 [warn] 240901#240901: protocol options redefined for 0.0.0.0:443 in /etc/nginx/sites-enabled/no-default.conf:18
2024/07/25 15:20:39 [warn] 246864#246864: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:5
2024/07/25 15:20:39 [warn] 246864#246864: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:6
2024/07/25 15:20:39 [warn] 246864#246864: protocol options redefined for [::]:443 in /etc/nginx/sites-enabled/no-default.conf:17
2024/07/25 15:20:39 [warn] 246864#246864: protocol options redefined for 0.0.0.0:443 in /etc/nginx/sites-enabled/no-default.conf:18
2024/07/25 15:20:39 [warn] 240901#240901: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:5
2024/07/25 15:20:39 [warn] 240901#240901: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:6
2024/07/25 15:20:39 [warn] 240901#240901: protocol options redefined for [::]:443 in /etc/nginx/sites-enabled/no-default.conf:17
2024/07/25 15:20:39 [warn] 240901#240901: protocol options redefined for 0.0.0.0:443 in /etc/nginx/sites-enabled/no-default.conf:18
2024/07/25 15:35:25 [warn] 250937#250937: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:5
2024/07/25 15:35:25 [warn] 250937#250937: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:6
2024/07/25 15:35:25 [warn] 250937#250937: protocol options redefined for [::]:443 in /etc/nginx/sites-enabled/no-default.conf:17
2024/07/25 15:35:25 [warn] 250937#250937: protocol options redefined for 0.0.0.0:443 in /etc/nginx/sites-enabled/no-default.conf:18
2024/07/25 15:39:35 [warn] 255490#255490: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:5
2024/07/25 15:39:35 [warn] 255490#255490: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:6
2024/07/25 15:39:35 [warn] 255490#255490: protocol options redefined for [::]:443 in /etc/nginx/sites-enabled/no-default.conf:17
2024/07/25 15:39:35 [warn] 255490#255490: protocol options redefined for 0.0.0.0:443 in /etc/nginx/sites-enabled/no-default.conf:18
2024/07/25 15:39:35 [warn] 250948#250948: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:5
2024/07/25 15:39:35 [warn] 250948#250948: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:6
2024/07/25 15:39:35 [warn] 250948#250948: protocol options redefined for [::]:443 in /etc/nginx/sites-enabled/no-default.conf:17
2024/07/25 15:39:35 [warn] 250948#250948: protocol options redefined for 0.0.0.0:443 in /etc/nginx/sites-enabled/no-default.conf:18
2024/07/25 15:42:34 [warn] 256235#256235: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:5
2024/07/25 15:42:34 [warn] 256235#256235: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:6
2024/07/25 15:42:34 [warn] 256235#256235: protocol options redefined for [::]:443 in /etc/nginx/sites-enabled/no-default.conf:17
2024/07/25 15:42:34 [warn] 256235#256235: protocol options redefined for 0.0.0.0:443 in /etc/nginx/sites-enabled/no-default.conf:18
2024/07/25 15:42:35 [warn] 250948#250948: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:5
2024/07/25 15:42:35 [warn] 250948#250948: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/alexbracken.test.conf:6
2024/07/25 15:42:35 [warn] 250948#250948: protocol options redefined for [::]:443 in /etc/nginx/sites-enabled/no-default.conf:17
2024/07/25 15:42:35 [warn] 250948#250948: protocol options redefined for 0.0.0.0:443 in /etc/nginx/sites-enabled/no-default.conf:18