summaryrefslogtreecommitdiff
path: root/playbooks.d/webserver-nginx
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-05-06 10:11:00 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-05-06 10:11:00 +0200
commite16951e362a4ecb05902e8dd1c97948a3d969883 (patch)
tree0830ec9e417c13911dbb0b9edcf692a78085bd13 /playbooks.d/webserver-nginx
parentf81ba513c32722606fb78228c8268731891deedf (diff)
Update www.tyil.nl vhost config
Diffstat (limited to 'playbooks.d/webserver-nginx')
-rw-r--r--playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.www7
1 files changed, 4 insertions, 3 deletions
diff --git a/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.www b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.www
index 9430959..46c0d71 100644
--- a/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.www
+++ b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.www
@@ -15,11 +15,12 @@ server {
root /var/www/nl.tyil.www/public;
+ # Custom error pages
error_page 404 /http-404.html;
- location /atom.xml {
- return 301 https://www.tyil.nl/posts/index.xml;
- }
+ # Redirects from older versions
+ location /atom.xml { return 301 https://www.tyil.nl/posts/index.xml; }
+ location /feed.xml { return 301 https://www.tyil.nl/posts/index.xml; }
location / {
try_files $uri $uri/ =404;