Ilya Sosnovsky c6f87f7a59 fix readme | il y a 4 ans | |
---|---|---|
css | il y a 7 ans | |
fonts | il y a 7 ans | |
img | il y a 5 ans | |
js | il y a 7 ans | |
403.html | il y a 4 ans | |
404.html | il y a 4 ans | |
50x.html | il y a 4 ans | |
CNAME | il y a 6 ans | |
LICENSE | il y a 7 ans | |
README.md | il y a 4 ans | |
_config.yml | il y a 7 ans | |
index.html | il y a 7 ans |
cd /var/www
git clone https://github.com/pashcovich/maintenance_page
I use this simple configuration for nginx
on my servers:
# Default server configuration
#
server {
listen 80 default_server;
listen [::]:80 default_server;
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
root /var/www/maintenance_page;
error_page 403 = /403.html;
error_page 404 = /404.html;
error_page 500 502 503 504 /50x.html;
index index.html;
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
}