I ran this command: a command to delete the ssl from one of my domain. But after this none of my website was opening…so i thought i should delete all the ssl and then reinstall all of them…so i delete all of them … after this i started facing this error …now all of my websites are down…please help me.
It produced this output: when i run " sudo nginx -t"
The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError(‘Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] BIO_new_file("/etc/letsencrypt/livwww.xxx.me/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(’/etc/letsencrypt/live/w.xxxx.me/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.cf test failed\n’,)
There are two types of people, those who make backups and those who will make backups. Which one are you?.
If you are here I suppose you are the one which after this... will do backups .
Right now, nginx can't start because there are SSL directives in the conf pointing to files (your certificates and keys) that nginx needs to start and it can't find them so as you deleted all of them, you need to reconfigure nginx to not use those files, and for that, you have several options but it depends on how you have configured them... so edit your conf files one by one and comment the entire server block serving the domains using port 443 and ssl. Once commented all of them you could start nginx and try to get a new cert for your domains but as I said, all this depends on how is your nginx configured.... if you are redirecting from http to https you should disable them till you can get your certificates... or you could use the dns challenge instead so you should not need to change anything but this could be a bit complicated.
Hello Sir g…as you said i changed every block to default configuration, and allow the port 80…
but when i run sudo nginx -t…i got this…
nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/www.weihnachtsbilder.me/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(’/etc/letsencrypt/live/www.weihnachtsbilder.me/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/ng
inx.conf test failed