Report this

What is the reason for this report?

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

Posted on March 29, 2017

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



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!

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.

@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

Thanks that worked.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.