diff --git a/common/website.conf b/common/website.conf index 8969d45..8e5b30d 100644 --- a/common/website.conf +++ b/common/website.conf @@ -52,7 +52,7 @@ location ~ ^/(~|u/)(?[\w-]+)(?/.*)?$ { return 307 https://vern.cc/; } - subs_filter (<[^>]*\s(href|src)=["']?/) $1u/$user; +# subs_filter (<[^>]*\s(href|src)=["']?/) $1u/$user; autoindex on; autoindex_exact_size off; ssi on; @@ -63,7 +63,7 @@ location ~ ^/(~|u/)(?[\w-]+)(?/.*)?$ { rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent; rewrite ^/(.*)/$ /$1 permanent; -# try_files $uri $uri/index.html $uri.html $uri/ @extensionless-php; + try_files $uri $uri/index.html $uri.html $uri/ =404; location ~ \.php$ { fastcgi_pass 192.168.122.30:9000; diff --git a/sites-available/website.conf b/sites-available/website.conf index ecb0d5d..2ed492d 100644 --- a/sites-available/website.conf +++ b/sites-available/website.conf @@ -16,7 +16,6 @@ server { subs_filter jitsi.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion jitsi.vern.cc; subs_filter mumble.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion mumble.vern.cc; subs_filter mtrx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion mtrx.vern.cc; - subs_filter ssh://vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion ssh://vern.cc; subs_filter vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion:6697 vern.cc:6697; subs_filter @vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion @vern.cc;