2
0
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:
Tommy Miland 2019-03-28 19:53:28 +01:00
parent 84cf90d891
commit cb6ac2dca6

10
maintenance-page.conf Normal file
View 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;
}