Skip to content

Instantly share code, notes, and snippets.

@sokil
Last active July 12, 2017 19:46
Show Gist options
  • Save sokil/fb4592b70cd1b1706de7fc267309a148 to your computer and use it in GitHub Desktop.
Save sokil/fb4592b70cd1b1706de7fc267309a148 to your computer and use it in GitHub Desktop.
Maintenance Nginx Page
server
{
listen 80;
server_name server.com.ua;
location /
{
try_files $uri @underconstruction;
}
location @underconstruction {
rewrite ^/.*$ /underconstruction.html redirect;
}
location @app {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root/entrypoint.php;
fastcgi_param APPLICATION_ENV production;
fastcgi_buffers 10 8k;
fastcgi_buffer_size 8k;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment