Following instructions from How to Host a Static Website with Nginx | by Jason Rigden | Medium, I instead installed python3-certbot-nginx instead of python-certbot-nginx. Is that correct? I got this error: Timeout during connect (likely firewall problem). I've got port forwarding on my router to the appropriate computer for ports 80 & 8080, and I've got ufw showing for nginx Full, nginx HTTP & nginx HTTPS. Any ideas?
@_az Thanks for your helpful reply. Just call me stupid. I mistakenly used rose.ddns.me, whereas I should have used rose.myddns.me.
After correcting the various filenames and file contents that I had previously setup for nginx, I ran the curl statement you suggested and it gave:
john@johnpc:~$ curl -vvv -m10 rose.myddns.me
GET / HTTP/1.1
Host: rose.myddns.me
User-Agent: curl/7.68.0
Accept: /
Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< Server: nginx/1.18.0 (Ubuntu)
< Date: Sat, 15 Jan 2022 12:12:27 GMT
< Content-Type: text/html
< Content-Length: 178
< Connection: keep-alive
< Location: https://rose.myddns.me/
<
301 Moved Permanently
301 Moved Permanently
nginx/1.18.0 (Ubuntu)
* Connection #0 to host rose.myddns.me left intact
I presume that the above shows the website rose.myddns.me is Ok. However, when I tried it in Firefox on another computer on my network, it gave 'Potential Security Risk Ahead' and when I clicked on 'Advanced' it gave 'The certificate is not trusted because it is self-signed.' I have attached a a screenshot of that.
Is that expected behaviour in Firefox? If not, what needs correcting?
I have not been able to attach the Security Certificate (after clicking on View) because I am a new user of this community.