Install Nginx and join me.
Configuration is located at /etc/nginx/conf.d/default.conf. Say, you need just an index, a privacy policy page and a few images/styles.
server{
server_name yourdomain.com;
location / {
root /usr/share/nginx/html;
index index.html;
}
location /privacy {
alias /usr/share/nginx/html;
index privacy.html;
}
location /static {
root /usr/share/nginx/html/static;
}
}
In repository /usr/share/nginx/html you will have to place index.html and privacy.html.
In /usr/share/nginx/html/static your images and other static files. In the html pages you will link them like /styles/file.css
or ./styles/file.css
. Like this:
<link rel="stylesheet" href="./styles/file.css">
Use Git to load your files onto the server and here you go. To restart server do:
service nginx restart