server {
listen 80;
server_name pim.kun.is;
index index.html index.htm;
root /var/www/blog;
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires 3600;
add_header Pragma public;
add_header Cache-Control "public";
error_page 404 /404.html;
server_name pim.kunis.nl;
return 301 https://pim.kun.is$request_uri;
server_name concourse.pim.kunis.nl;
return 301 https://ci.kun.is$request_uri;
server_name rss.pim.kunis.nl;
return 301 https://rss.kun.is$request_uri;
server_name md.pim.kunis.nl;
return 301 https://md.kun.is$request_uri;
server_name cloud.pim.kunis.nl;
return 301 https://cloud.kun.is$request_uri;
server_name dav.pim.kunis.nl;
return 301 https://dav.kun.is$request_uri;
server_name git.pim.kunis.nl;
return 301 https://git.kun.is$request_uri;
server_name traefik.pim.kunis.nl;
return 301 https://traefik.kun.is$request_uri;