I only know that nginx is running because I managed to install Loomio via docker and it runs fine - except that I’m unable to follow any instructions for redirecting www.mysite.com to mysite.com. When I try to check status of nginx is claims that it is not installed - how is it running at all? How to configure it?
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.
My problem was that the firewall settings did not define a rule for port 80.
I add a rule for 80/tcp,
So,
And now, i access both http://DROPLET_IP and http://example.com.
I hope that will be useful for you.
I have same problem. I have installed nginx and configure with default setting. I get success via console ($curl http://localhost) but I get ERR_CONNECTION_TIMED_OUT error http://DROPLET_IP in browser in the same way with http://example.com domain. Switching the machines off/stop by running the docker stop command did not change anything.
Can you offer any guide or tutorial for production environment (specifically docker)? Thanks for your time and interest