mirror of
https://github.com/tmiland/Nginx-Maintenance-Mode
synced 2024-09-18 09:41:35 +02:00
Create maintenance-page.conf
This commit is contained in:
parent
84cf90d891
commit
cb6ac2dca6
10
maintenance-page.conf
Normal file
10
maintenance-page.conf
Normal file
@ -0,0 +1,10 @@
|
||||
if (-f /etc/nginx/html/server-error-pages/_site/$server_name-maintenance-page_on.html)
|
||||
{
|
||||
return 503;
|
||||
}
|
||||
error_page 503 @maintenance;
|
||||
location @maintenance
|
||||
{
|
||||
rewrite ^(.*)$ /$server_name-maintenance-page_on.html break;
|
||||
root /etc/nginx/html/server-error-pages/_site;
|
||||
}
|
Loading…
Reference in New Issue
Block a user