]> git.mxchange.org Git - friendica.git/blobdiff - mods/sample-nginx.config
Merge pull request #9323 from annando/notice
[friendica.git] / mods / sample-nginx.config
index d6afe7174662f00d24c27439d13d0a85bfae820b..b90e1fe29f710e011ee9681140fa0d5d77358775 100644 (file)
@@ -91,7 +91,7 @@ server {
   # by denying dot files and rewrite request to the front controller
   location ^~ /.well-known/ {
     allow all;
-    try_files $uri /index.php?pagename=$uri&$args;
+    rewrite ^ /index.php?pagename=$uri;
   }
 
   include mime.types;
@@ -141,4 +141,9 @@ server {
   location ~ /\. {
     deny all;
   }
+
+  # deny access to the CLI scripts
+  location ^~ /bin {
+    deny all;
+  }
 }