metanohi/nginx/base.conf

113 lines
4.9 KiB
Plaintext
Raw Normal View History

2016-08-25 23:25:48 +02:00
server_name metanohi.name www.metanohi.name;
2016-08-26 12:06:49 +02:00
root /var/www/metanohi.name/web-serve;
2016-08-25 23:25:48 +02:00
index index.html;
2016-09-02 11:47:33 +02:00
location ~ \.html$ {
internal;
}
2016-08-25 23:25:48 +02:00
location / {
# Old rewrites.
2016-08-27 22:22:38 +02:00
rewrite ^/projects/aeltei https://git.metanohi.name/aeltei.git/;
rewrite ^/projects/alart https://git.metanohi.name/alart.git/;
rewrite ^/projects/alp https://git.metanohi.name/alp.git/;
rewrite ^/projects/bolg https://git.metanohi.name/bolg.git/;
rewrite ^/projects/desurveil https://git.metanohi.name/desurveil.git/;
rewrite ^/projects/dililatum https://git.metanohi.name/dililatum.git/;
rewrite ^/projects/dotbox https://git.metanohi.name/dotbox.git/;
rewrite ^/projects/dungeoncrawl https://git.metanohi.name/dungeoncrawl.git/;
rewrite ^/projects/electruth https://git.metanohi.name/electruth.git/;
rewrite ^/projects/enigma https://git.metanohi.name/enigma.git/;
rewrite ^/projects/exoskelegram https://git.metanohi.name/exoskelegram.git/;
rewrite ^/projects/forbi https://git.metanohi.name/forbi.git/;
rewrite ^/projects/forestquest https://git.metanohi.name/forestquest.git/;
rewrite ^/projects/gravnoise https://git.metanohi.name/gravnoise.git/;
rewrite ^/projects/hbcht https://git.metanohi.name/hbcht.git/;
rewrite ^/projects/htmlentitiesdecode https://git.metanohi.name/htmlentitiesdecode.git/;
rewrite ^/projects/indirectassassin https://git.metanohi.name/indirectassassin.git/;
rewrite ^/projects/kando https://git.metanohi.name/kando.git/;
rewrite ^/projects/kvigall https://git.metanohi.name/kvigall.git/;
rewrite ^/projects/luncheon https://git.metanohi.name/luncheon.git/;
rewrite ^/projects/movact https://git.metanohi.name/movact.git/;
rewrite ^/projects/naghni https://git.metanohi.name/Naghni.git/;
rewrite ^/projects/noncrawl https://git.metanohi.name/noncrawl.git/;
rewrite ^/projects/pebsaq https://git.metanohi.name/pebsaq.git/;
rewrite ^/projects/pumila https://git.metanohi.name/pumila.git/;
rewrite ^/projects/sadbipws https://git.metanohi.name/sadbipws.git/;
rewrite ^/projects/shadowloss https://git.metanohi.name/shadowloss.git/;
rewrite ^/projects/textmation https://git.metanohi.name/textmation.git/;
rewrite ^/projects/wordwork https://git.metanohi.name/wordwork.git/;
rewrite ^/projects/yelljfish https://git.metanohi.name/yelljfish.git/;
rewrite ^/projects/zebralligator https://git.metanohi.name/zebralligator.git/;
rewrite ^/projects/mege https://git.metanohi.name/mege.git/;
rewrite ^/mege https://git.metanohi.name/mege.git/;
rewrite ^/projects/wontofor https://git.metanohi.name/wontofor.git/;
rewrite ^/124 https://git.metanohi.name/wontofor.git/;
rewrite ^/projects/zita https://git.metanohi.name/zita.git/;
rewrite ^/zita https://git.metanohi.name/zita.git/;
rewrite ^/zit https://git.metanohi.name/zita.git/;
rewrite ^/projects/bito https://git.metanohi.name/bito.git/;
rewrite ^/bito https://git.metanohi.name/bito.git/;
rewrite ^/bit https://git.metanohi.name/bito.git/;
rewrite ^/projects/totxt https://git.metanohi.name/totxt.git/;
rewrite ^/totxt https://git.metanohi.name/totxt.git/;
rewrite ^/totext https://git.metanohi.name/totxt.git/;
rewrite ^/projects/canvas https://old-projects.metanohi.name/canvas/;
rewrite ^/canvas https://old-projects.metanohi.name/canvas/;
rewrite ^/projects/eonaton https://old-projects.metanohi.name/eonaton/;
rewrite ^/eonaton https://old-projects.metanohi.name/eonaton/;
rewrite ^/projects/evolution https://old-projects.metanohi.name/evolution/;
rewrite ^/evolution https://old-projects.metanohi.name/evolution/;
rewrite ^/projects/snake https://old-projects.metanohi.name/snake/;
rewrite ^/snake https://old-projects.metanohi.name/snake/;
rewrite ^/aboutme /about/niels last;
rewrite ^/projects/nanonote /nanonote last;
rewrite ^/writings/na /Na last;
rewrite ^/writings/Na\.html$ /Na last;
rewrite ^/writings/digital-sikring\.html$ /digital-sikring last;
2016-08-30 18:02:19 +02:00
rewrite ^/projects/magicng /magicng last;
rewrite ^/writings/magicng /magicng last;
2016-08-27 22:22:38 +02:00
rewrite ^/bsq https://old-projects.metanohi.name/bsq/;
rewrite ^/gt3000 https://old-projects.metanohi.name/gt3000/;
rewrite ^/algo https://old-projects.metanohi.name/algo/;
rewrite ^/algohol https://old-projects.metanohi.name/algo/;
rewrite ^/dkstp https://old-projects.metanohi.name/dkstp/;
rewrite ^/jap https://old-projects.metanohi.name/jap/;
rewrite ^/pedro https://old-projects.metanohi.name/pedro/;
rewrite ^/snowman https://old-projects.metanohi.name/snowman/;
rewrite ^/sq https://old-projects.metanohi.name/sq/;
rewrite ^/webcli https://old-projects.metanohi.name/webcli/;
rewrite ^/x https://old-projects.metanohi.name/x/;
2016-08-25 23:25:48 +02:00
2016-08-30 18:02:19 +02:00
rewrite ^/totxt https://old-projects.metanohi.name/totxt/;
2016-08-25 23:25:48 +02:00
# Ordinary handling.
2016-08-26 15:37:57 +02:00
try_files $uri $uri.html $uri/ =404;
2016-08-25 23:25:48 +02:00
}