By aakashgshah
To start, I’ve read and completed the following articles:
Setting up SSL on Nginx with DO: https://www.digitalocean.com/community/articles/how-to-create-a-ssl-certificate-on-nginx-for-ubuntu-12-04/
Setting up subdomains with DO: https://www.digitalocean.com/community/articles/how-to-set-up-and-test-dns-subdomains-with-digitalocean-s-dns-panel
Setting up CORS with nginx: http://enable-cors.org/server_nginx.html
My nginx config looks similar to http://p.ngx.cc/52
My problem:
If I connect to my droplet like: https://api.domain.org/some_api_call Then it fails.
But…If I connect using https://api.domain.org:8001/some_api_call 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.
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!
@pingpawn <br> <br>HTTPS connects on port 443. In your Nginx config, try changing the “listen” directive from port “80” to port “443”
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.