Ilya Sosnovsky c6f87f7a59 fix readme | %!s(int64=4) %!d(string=hai) anos | |
---|---|---|
css | %!s(int64=7) %!d(string=hai) anos | |
fonts | %!s(int64=7) %!d(string=hai) anos | |
img | %!s(int64=5) %!d(string=hai) anos | |
js | %!s(int64=7) %!d(string=hai) anos | |
403.html | %!s(int64=4) %!d(string=hai) anos | |
404.html | %!s(int64=4) %!d(string=hai) anos | |
50x.html | %!s(int64=4) %!d(string=hai) anos | |
CNAME | %!s(int64=6) %!d(string=hai) anos | |
LICENSE | %!s(int64=7) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
_config.yml | %!s(int64=7) %!d(string=hai) anos | |
index.html | %!s(int64=7) %!d(string=hai) anos |
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;
}
}