Nginx-Maintenance-Mode
Nginx-Maintenance-Mode copied to clipboard
Needed Restart?
Hello,
thank you for your handy scripts!
I have a question regarding the maintenance toggle shellscript: Why is it necessary to restart nginx each time the maintenance mode is toggled on/off? The file existence check in the maintenance-page.conf is executed for each nginx request, therefore in my tests it was only necessary to create the maintenance-page_on.html file without reloading nginx to turn the maintenance mode on.
Thank you, Timon
Hello,
you're welcome. :)
Nginx is reloaded. This reloads the configuration without restarting the server, just in case any configuration has changed. If nothing has changed, then nothing is done basically.
Regards.