From: Dessalines Date: Thu, 29 Aug 2019 18:40:23 +0000 (-0700) Subject: Fixing nginx config. X-Git-Url: http://these/git/%7Bthis.favIcon%7D?a=commitdiff_plain;h=f474904a46ea9fc6323064d621f02ef7ee0d3233;p=lemmy.git Fixing nginx config. - Fixes #247 --- diff --git a/ansible/templates/nginx.conf b/ansible/templates/nginx.conf index 21560b5f..74fbcda9 100644 --- a/ansible/templates/nginx.conf +++ b/ansible/templates/nginx.conf @@ -47,7 +47,7 @@ server { add_header X-XSS-Protection "1; mode=block"; location / { - rewrite (\/(user|u|inbox|post|community|c|login|search|sponsors|communities|modlog|home)+) /static/index.html break; + rewrite (\/(user|u\/|inbox|post|community|c\/|login|search|sponsors|communities|modlog|home)+) /static/index.html break; proxy_pass http://0.0.0.0:8536; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host;