Adds redirection for feed URLs
This commit is contained in:
parent
da57200883
commit
e7f347c330
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user