X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mods%2Fsample-nginx.config;h=b90e1fe29f710e011ee9681140fa0d5d77358775;hb=b0bb95bb0d2799ac472ceb7aed1c5148206b35fd;hp=d6afe7174662f00d24c27439d13d0a85bfae820b;hpb=956fe99591311f49652750fa17b1e4487df35a5c;p=friendica.git diff --git a/mods/sample-nginx.config b/mods/sample-nginx.config index d6afe71746..b90e1fe29f 100644 --- a/mods/sample-nginx.config +++ b/mods/sample-nginx.config @@ -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; + } }