This repository contains a simple maintenance page and the configuration of the nginx web server.
- Setup webserver with nginx.
- Go to
cd /var/www
. - Clone repo with:
git clone https://github.com/PHKA-ZIM/maintenance.git
. - Copy ssl public cert to
/var/www/maintenance/certs/cert.pem
. - Copy ssl private cert to
/var/www/maintenance/certs/cert.key
. - Go to
cd /etc/nginx
and removerm nginx.conf
and symlink nginx.conf withln -s /var/www/maintenance/nginx/nginx.conf
. - Go to
cd /etc/nginx/sites-available
and symlink maintenance withln -s /var/www/maintenance/nginx/sites-available/maintenance
. - Go to
cd /etc/nginx/sites-enabled
and disable default site withrm default
if enabled. - Go to
cd /etc/nginx/sites-enabled
and enable site withln -s /etc/nginx/sites-available/maintenance
. - Restart nginx web server with
service nginx restart
.