By brendang
I want to enable HTTPS on my droplet, so i followed these instructions, which state as a pre-requisite that i needed to install nginx and set up server blocks using these instructions.
when trying to set up server blocks following the 2nd set of instructions, every time i get to sudo systemctl restart nginx i get the following error: Job for nginx.service failed because the control process exited with error code.
Since my droplet is a web app running off an app in a docker conatainer, i won’t have any html files to add or any pages to my site. should i be setting up the server block differently than in the example?
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!
Hi there @brendang,
It sounds like that there could be another service listening on port 80 already so Nginx is failing to start.
In order to verify if this is the case, I would recommend checking your Nginx error log.
- tail -f /var/log/nginx/error.log
Also I would suggest following the steps here on how to troubleshoot common Nginx problems:
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.