I keep forgetting to reload nginx settings, sudo service nginx reload
, while working on / experimenting / learning the config files, nginx
(and other included config files).
Is there a way of achieving this, that nginx reloads configuration files, after any of the changes below:
- /etc/nginx/nginx.conf
- /etc/nginx/sites-available/ (any changes, deletion, creation of files)
- /etc/nginx/sites-enabled/ (any changes, deletion, creation of files)
You may think it's just silly/stupid that I forget to reload, but while being new and actually learning and experimenting, there is really enough to keep track of.