nginx perm redir

This commit is contained in:
tparnell
2018-09-28 07:10:04 -04:00
parent 116769c569
commit d67e8d6cf9
2 changed files with 3 additions and 2 deletions

View File

@@ -1,2 +1,3 @@
node_modules
public
public
db.json

View File

@@ -5,7 +5,7 @@ server {
location / {
root /usr/share/nginx/html;
index index.html index.htm;
rewrite ^(/tags/)(.*) https://$host/tag/$2;
rewrite ^(/tags/)(.*) https://$host/tag/$2/ permanent;
rewrite ^(/rss) /rss.xml break;
absolute_redirect off;
real_ip_header X-Forwarded-For;