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

Posted March 29, 2017 6.4k views
Let's Encrypt

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

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.

Submit an Answer
2 answers


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

service nginx restart


systemctl restart nginx

Thanks that worked.

  • @Jerry203

    No problem :-).

    NGINX doesn’t function dynamically like changes to an .htaccess file would with Apache, so much like changes to Apaches core configuration, NGINX has to be restarted with each change that gets made, whether it’s one letter or 50+ lines.