Changes made in the configuration file will not be applied until the command to reload configuration is sent to nginx or it is restarted.
Before reloading configuration or restarting the nginx server, fist check that the nginx config syntax is valid:
sudo nginx -t
If valid, To reload configuration, execute:
sudo nginx -s reload
To reload the nginx service.
sudo service nginx reload
Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.
p.s. I increased my AdSense revenue by 200% using AI 🤖. Read my Ezoic review to find out how.