By dffiaNt
Hi guys,
As the question states I would like for when users browse to my domain name they see my nginx container. Currently I can view the container (default nginx) when I browse to my droplets ip but not through the domain name. I know my domain name is pointing to my droplet correctly since performing tracerts/pings result in a connection to my droplets ip.
My setup has been this:
runing docker ps results in: a7d45cc55a85 nginx “nginx -g 'daemon of…” 8 minutes ago Up 8 minutes 0.0.0.0:80->80/tcp
This has resulted in the display of the ‘Welcome to nginx’ page when I browse to my server ip, but when I browse to my domain I get ERR_CONNECTION_REFUSED, “This site can’t be reached”.
Any help would be much appreciated.
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!
So I actually figured it out eventually. I have a .dev domain, and what was happening is every time I would go to http://mydomain.dev it would always attempt to go to https://mydomain.dev so I solved the problem by adding an ssl certificate to my nginx config.
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.