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.

×
2 answers

@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.

  • @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.

Submit an Answer