I was following this tutorial on how to install Nginx https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04
I could not get Nginx to start as Docker is already using port 80. Should I be using a different method to add an ssl certificate if using Docker?
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 @lukewaldron87,
So, port 80 is what your Browser uses when you load a website using HTTP. If you use HTTPS to open a website, it uses port 443. I’m not sure what you are using Docker for but usually, I would recommend using Nginx on that port.
Once you have that, you should be able to set a reverse proxy to your Docker instance with Nginx so that you would be able to use both. I’ve found a DigitalOcean tutorial which I think can help you out in your case, please check it out:
Regards, KFSys
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.