|
před 5 roky | |
---|---|---|
css | před 7 roky | |
fonts | před 7 roky | |
img | před 5 roky | |
js | před 7 roky | |
403.html | před 5 roky | |
404.html | před 5 roky | |
50x.html | před 5 roky | |
CNAME | před 6 roky | |
LICENSE | před 7 roky | |
README.md | před 5 roky | |
_config.yml | před 7 roky | |
index.html | před 7 roky |
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;
}
}