X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mods%2Fsample-nginx.config;h=b90e1fe29f710e011ee9681140fa0d5d77358775;hb=9684ce4eb513bcefc89640acc70cd9d4c6d7c03b;hp=d6afe7174662f00d24c27439d13d0a85bfae820b;hpb=70e68449ff630c861f0497c4887d727e78488684;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; + } }