Question

How do I get Nginx to pick changes in site config file.

I made a type in my server name in nginx/site-available/default and so my http traffic is being transferred to the wrong https site. I corrected the type but I can’t get Nginx to pick the change. I am using Letsencrypt certificate, my stack is Ubuntu 16.04 Nginx, gunicorn, flask


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.

Thanks that worked.

@Jerry203

You’ll need to restart or reload NGINX from the CLI each time you make configuration changes.

service nginx restart

or

systemctl restart nginx