I renewed my SSL certificate via let’s encrypt. I always could do it with the configure files that I had however this time I could not run nginx (
[emerg] 4026#4026: duplicate listen options for [::]:80 in /etc/nginx/sites-enabled/default.save:31)and I found the problem is related to perhaps new nginx version that is updated by Digital Ocean automatically. I needed to remove
default_server ipv6only=on from
/etc/nginx/sites-enabled/default then I noticed that still I could not run nginx with the same errors. Then I noticed that I need to basically delete
How could I delete this file? rm: remove write-protected regular file ‘/etc/nginx/sites-enabled/default.save’? y rm: cannot remove ‘/etc/nginx/sites-enabled/default.save’: Permission denied
I logged in via ssh connection with keys.
By the way I could edit the file with nono and remove
default_server ipv6only=onsection and now it is working fine. By the way, what exactly
default_server ipv6only=on does and if one day I want to delete ‘/etc/nginx/sites-enabled/default.save’ how should I get ride of permission denied? thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!