You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

114 lines
4.6 KiB

  1. root /var/www/metanohi/web-serve;
  2. index index.html;
  3. error_page 404 /404.html;
  4. location /404 {
  5. internal;
  6. }
  7. location ~ \.html$ {
  8. internal;
  9. }
  10. location / {
  11. # Old rewrites.
  12. rewrite ^/projects/aeltei https://github.com/nqpz/aeltei;
  13. rewrite ^/projects/alart https://github.com/nqpz/alart;
  14. rewrite ^/projects/alp https://github.com/nqpz/alp;
  15. rewrite ^/projects/bolg https://pypi.org/project/bolg/;
  16. rewrite ^/projects/desurveil https://pypi.org/project/desurveil/;
  17. rewrite ^/projects/dililatum https://github.com/nqpz/dililatum;
  18. rewrite ^/projects/dotbox https://github.com/nqpz/dotbox;
  19. rewrite ^/projects/electruth https://github.com/nqpz/electruth;
  20. rewrite ^/projects/exoskelegram https://pypi.org/project/exoskelegram/;
  21. rewrite ^/projects/forbi https://pypi.org/project/forbi/;
  22. rewrite ^/projects/forestquest https://github.com/nqpz/forestquest;
  23. rewrite ^/projects/gravnoise https://github.com/nqpz/gravnoise;
  24. rewrite ^/projects/hbcht https://github.com/nqpz/hbcht;
  25. rewrite ^/projects/htmlentitiesdecode https://pypi.org/project/htmlentitiesdecode/;
  26. rewrite ^/projects/indirectassassin https://github.com/nqpz/indirectassassin;
  27. rewrite ^/projects/kando https://pypi.org/project/kando/;
  28. rewrite ^/projects/kvigall https://pypi.org/project/kvigall/;
  29. rewrite ^/projects/movact https://github.com/nqpz/movact;
  30. rewrite ^/projects/naghni https://github.com/nqpz/naghni;
  31. rewrite ^/projects/noncrawl https://pypi.org/project/noncrawl/;
  32. rewrite ^/projects/pebsaq https://pypi.org/project/pebsaq/;
  33. rewrite ^/projects/pumila https://github.com/nqpz/pumila;
  34. rewrite ^/projects/sadbipws https://pypi.org/project/sadbipws/;
  35. rewrite ^/projects/shadowloss https://github.com/nqpz/shadowloss;
  36. rewrite ^/projects/yelljfish https://pypi.org/project/yelljfish/;
  37. rewrite ^/projects/totxt https://old-projects.metanohi.name/totxt/;
  38. rewrite ^/totxt https://old-projects.metanohi.name/totxt/;
  39. rewrite ^/totext https://old-projects.metanohi.name/totxt/;
  40. rewrite ^/projects/canvas https://old-projects.metanohi.name/canvas/;
  41. rewrite ^/canvas https://old-projects.metanohi.name/canvas/;
  42. rewrite ^/projects/eonaton https://old-projects.metanohi.name/eonaton/;
  43. rewrite ^/eonaton https://old-projects.metanohi.name/eonaton/;
  44. rewrite ^/projects/evolution https://old-projects.metanohi.name/evolution/;
  45. rewrite ^/evolution https://old-projects.metanohi.name/evolution/;
  46. rewrite ^/projects/snake https://old-projects.metanohi.name/snake/;
  47. rewrite ^/snake https://old-projects.metanohi.name/snake/;
  48. rewrite ^/bsq https://old-projects.metanohi.name/bsq/;
  49. rewrite ^/gt3000 https://old-projects.metanohi.name/gt3000/;
  50. rewrite ^/algo https://old-projects.metanohi.name/algo/;
  51. rewrite ^/algohol https://old-projects.metanohi.name/algo/;
  52. rewrite ^/dkstp https://old-projects.metanohi.name/dkstp/;
  53. rewrite ^/jap https://old-projects.metanohi.name/jap/;
  54. rewrite ^/pedro https://old-projects.metanohi.name/pedro/;
  55. rewrite ^/snowman https://old-projects.metanohi.name/snowman/;
  56. rewrite ^/sq https://old-projects.metanohi.name/sq/;
  57. rewrite ^/webcli https://old-projects.metanohi.name/webcli/;
  58. rewrite ^/x https://old-projects.metanohi.name/x/;
  59. rewrite ^/totxt https://old-projects.metanohi.name/totxt/;
  60. rewrite ^/aboutme /about/niels redirect;
  61. rewrite ^/projects/nanonote /nanonote redirect;
  62. rewrite ^/writings/na /Na redirect;
  63. rewrite ^/writings/Na\.html$ /Na redirect;
  64. rewrite ^/writings/digital-sikring\.html$ /digital-sikring redirect;
  65. rewrite ^/projects/magicng /magicng redirect;
  66. rewrite ^/writings/magicng /magicng redirect;
  67. rewrite ^/writings/atem /atem redirect;
  68. rewrite ^/writings/digital-sikring /digital-sikring redirect;
  69. rewrite ^/writings/longpoem /longpoem/ redirect;
  70. rewrite ^/writings/myuniverse /myuniverse/ redirect;
  71. rewrite ^/writings/nanonote /nanonote/ redirect;
  72. rewrite ^/writings/ordfinder /ordfinder/ redirect;
  73. rewrite ^/writings/potator /potator/ redirect;
  74. rewrite ^/writings/pvd /pvd/ redirect;
  75. rewrite ^/writings/pygame-pycairo /pygame-pycairo redirect;
  76. rewrite ^/writings/sound-programming /sound-programming/ redirect;
  77. rewrite ^/writings/stadig-digital-sikring /stadig-digital-sikring redirect;
  78. rewrite ^/writings/tfr /tfr/ redirect;
  79. rewrite ^/writings/two-spaces /two-spaces redirect;
  80. rewrite ^/writings/ugs /ugs/ redirect;
  81. rewrite ^/writings/unhappy /unhappy/ redirect;
  82. rewrite ^/misc / redirect;
  83. # Ordinary handling.
  84. try_files $uri $uri.html $uri/ =404;
  85. }