Commit e03fc07cc7
Verified · cmc
Layout: unified · split
linux/nginx/etc/nginx/conf.d/cleberg.net.conf +1 −1
| @@ -49,7 +49,7 @@ server { | ||
| 49 | 49 | |
| 50 | 50 | location /atom.xml { return 301 $scheme://$host/feed.xml; } |
| 51 | 51 | location /blog/salary-transparency.html { return 301 $scheme://$host/salary/; } |
| 52 | location = /.well-known/ { return 404; } | |
| 52 | include custom.d/redirects/blog.conf; | |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | server { |
linux/nginx/etc/nginx/custom.d/redirects/blog.conf added +139
| @@ -0,0 +1,139 @@ | ||
| 1 | # Legacy blog redirects | |
| 2 | ||
| 3 | location = /blog/how-to-set-up-a-vps-web-server { | |
| 4 | return 301 /blog/vps-web-server.html; | |
| 5 | } | |
| 6 | ||
| 7 | location = /blog/how-to-set-up-a-vps-web-server.html { | |
| 8 | return 301 /blog/vps-web-server.html; | |
| 9 | } | |
| 10 | ||
| 11 | location = /blog/doom-emacs-org-mode.html { | |
| 12 | return 301 /blog/doom-emacs.html; | |
| 13 | } | |
| 14 | ||
| 15 | location = /blog/2020-01-25-aes-encryption.html { | |
| 16 | return 301 /blog/aes-encryption.html; | |
| 17 | } | |
| 18 | ||
| 19 | location = /blog/2020-01-26-steam-on-ntfs-drives.html { | |
| 20 | return 301 /blog/steam-on-ntfs.html; | |
| 21 | } | |
| 22 | ||
| 23 | location = /blog/updating-dynamic-dns-with-cloudflare-api { | |
| 24 | return 301 /blog/cloudflare-dns-api.html; | |
| 25 | } | |
| 26 | ||
| 27 | location = /blog/launching-a-gemini-capsule.html { | |
| 28 | return 301 /blog/gemini-capsule.html; | |
| 29 | } | |
| 30 | ||
| 31 | location = /blog/jumping-back-into-photography { | |
| 32 | return 301 /blog/photography.html; | |
| 33 | } | |
| 34 | ||
| 35 | location = /blog/jumping-back-into-photography.html { | |
| 36 | return 301 /blog/photography.html; | |
| 37 | } | |
| 38 | ||
| 39 | location = /blog/i-passed-the-cisa.html { | |
| 40 | return 301 /blog/cisa.html; | |
| 41 | } | |
| 42 | ||
| 43 | location = /blog/fedora-remove-login-manager.html { | |
| 44 | return 301 /blog/fedora-login-manager.html; | |
| 45 | } | |
| 46 | ||
| 47 | location = /blog/corporate-security.html { | |
| 48 | return 301 /blog/internal-audit.html; | |
| 49 | } | |
| 50 | ||
| 51 | location = /blog/secure-your-network-with-the-uncomplicated-firewall { | |
| 52 | return 301 /blog/ufw.html; | |
| 53 | } | |
| 54 | ||
| 55 | location = /blog/secure-your-network-with-the-uncomplicated-firewall.html { | |
| 56 | return 301 /blog/ufw.html; | |
| 57 | } | |
| 58 | ||
| 59 | location = /blog/running-flatpak-apps-easily.html { | |
| 60 | return 301 /blog/flatpak-symlinks.html; | |
| 61 | } | |
| 62 | ||
| 63 | location = /blog/random-mullvad-wireguard { | |
| 64 | return 301 /blog/random-wireguard.html; | |
| 65 | } | |
| 66 | ||
| 67 | location = /blog/note-taking.html { | |
| 68 | return 301 /blog/reliable-notes.html; | |
| 69 | } | |
| 70 | ||
| 71 | location = /blog/matrix-synapse.html { | |
| 72 | return 301 /blog/self-hosting-matrix.html; | |
| 73 | } | |
| 74 | ||
| 75 | location = /blog/macos-testing-out-a-new-os { | |
| 76 | return 301 /blog/macos.html; | |
| 77 | } | |
| 78 | ||
| 79 | location = /blog/hosting-a-gemini-server.html { | |
| 80 | return 301 /blog/gemini-server.html; | |
| 81 | } | |
| 82 | ||
| 83 | location = /blog/gitweb.html { | |
| 84 | return 301 /blog/self-hosting-gitweb.html; | |
| 85 | } | |
| 86 | ||
| 87 | location = /blog/freshrss.html { | |
| 88 | return 301 /blog/self-hosting-freshrss.html; | |
| 89 | } | |
| 90 | ||
| 91 | location = /blog/foss-macos-apps { | |
| 92 | return 301 /blog/macos.html; | |
| 93 | } | |
| 94 | ||
| 95 | location = /blog/foss-macos-apps.html { | |
| 96 | return 301 /blog/macos.html; | |
| 97 | } | |
| 98 | ||
| 99 | location = /blog/doom-emacs { | |
| 100 | return 301 /blog/doom-emacs.html; | |
| 101 | } | |
| 102 | ||
| 103 | location = /blog/digital-minimalism { | |
| 104 | return 301 /blog/digital-minimalism.html; | |
| 105 | } | |
| 106 | ||
| 107 | location = /blog/cryptography-basics.html { | |
| 108 | return 301 /blog/cryptography.html; | |
| 109 | } | |
| 110 | ||
| 111 | location = /blog/alpine-desktop { | |
| 112 | return 301 /blog/alpine-desktop.html; | |
| 113 | } | |
| 114 | ||
| 115 | location = /blog/salary-transparency { | |
| 116 | return 301 /salary/; | |
| 117 | } | |
| 118 | ||
| 119 | # Bad/bot paths | |
| 120 | ||
| 121 | location = /blog/wp-login.php { | |
| 122 | return 410; | |
| 123 | } | |
| 124 | ||
| 125 | location = /blog/signatur.php { | |
| 126 | return 410; | |
| 127 | } | |
| 128 | ||
| 129 | location = /blog/data:, { | |
| 130 | return 410; | |
| 131 | } | |
| 132 | ||
| 133 | location = /org/blog/index.org { | |
| 134 | return 410; | |
| 135 | } | |
| 136 | ||
| 137 | location = /.well-known/ { | |
| 138 | return 404; | |
| 139 | } | |