Setting up nginx proxy_pass with SSL & subdomains

To start, I’ve read and completed the following articles:

Setting up SSL on Nginx with DO:

Setting up subdomains with DO:

Setting up CORS with nginx:

My nginx config looks similar to

My problem:

If I connect to my droplet like: Then it fails.

But…If I connect using Then it works just fine.

I’m relatively new to this, so I appreciate any help. Especially since I’m unsure whether this is a problem with how I’ve gone about configuring DO or nginx.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

@pingpawn <br> <br>HTTPS connects on port 443. In your Nginx config, try changing the “listen” directive from port “80” to port “443”