Virtualmin + Nginx + SSL setup error

OS: Ubuntu 20.04
Installed Virtualmin + Nginx + PHP-FPM

Everything set up fine, however, when I installed SSL 3 month’s trial (Fully Valid Cert) not from Letsencrypt ( Reached limit ) everything works perfectly but when I switch to Cloudflare website crashed with 521 servers not found. Tried switching to a different option like Flexible , Full , Full (strict) with no luck

command

tail -f /var/log/nginx/error.log

got a bunch of errors in the log file.

root@server:~# tail -f /var/log/nginx/error.log

2020/12/29 21:59:05 [emerg] 6813#6813: bind() to 2xx.2xx.xx3.xxx:443 failed (98: Address already in use)

2020/12/29 21:59:05 [emerg] 6813#6813: bind() to [2xxx:a1xx:xxxx:8xxx::1]:443 failed (98: Address already in use)

2020/12/29 21:59:05 [emerg] 6813#6813: still could not bind()

2020/12/29 22:31:47 [emerg] 512#512: cannot load certificate “/home/example/ssl.cert”: BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/home/example/ssl.cert’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)

2020/12/29 22:32:37 [emerg] 1986#1986: cannot load certificate “/home/example/ssl.cert”: BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/home/example/ssl.cert’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)

2020/12/29 23:58:45 [alert] 12025#12025: *1168 open socket #17 left in connection 93

2020/12/29 23:58:45 [alert] 12025#12025: aborting

I’m pretty sure those ssl files are there but nginx thinks something else ;(

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.