Last active
July 12, 2017 19:46
-
-
Save sokil/fb4592b70cd1b1706de7fc267309a148 to your computer and use it in GitHub Desktop.
Maintenance Nginx Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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