]> Untitled Git - lemmy.git/commitdiff
Fixing nginx config.
authorDessalines <tyhou13@gmx.com>
Thu, 29 Aug 2019 18:40:23 +0000 (11:40 -0700)
committerDessalines <tyhou13@gmx.com>
Thu, 29 Aug 2019 18:40:23 +0000 (11:40 -0700)
- Fixes #247

ansible/templates/nginx.conf

index 21560b5f52441c824de69d27b2449139756d9a3d..74fbcda97833eac2ea4990383c83b60152ae6bda 100644 (file)
@@ -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;