Adds redirection for feed URLs

master
Abhinav Sarkar 2019-01-25 06:21:51 +00:00
parent da57200883
commit e7f347c330
1 changed files with 18 additions and 0 deletions

View File

@ -11,6 +11,16 @@ server {
proxy_set_header X-Real-IP $remote_addr; # pass on real client IP
location /feed.xml {
return 301 https://$host/feed.atom;
}
rewrite ^/tags/(.*)/feed.xml$ /tags/$1/feed.atom permanent;
location ~ .(aspx|php|jsp|cgi)$ {
deny all;
}
location / {
proxy_pass http://site:3000;
}
@ -27,3 +37,11 @@ server {
server_name abhinavsarkar.net;
return 301 https://$host$request_uri;
}
# remove 'www'
server {
listen 80;
listen 443 ssl;
server_name www.abhinavsarkar.net;
return 301 https://abhinavsarkar.net$request_uri;
}