1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

Fix nginx security Issue #1

This commit is contained in:
Josue-T 2018-01-18 23:33:29 +01:00 committed by GitHub
parent 57fdba3a14
commit 83b68e639b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ location __PATH__ {
# by denying dot files and rewrite request to the front controller # by denying dot files and rewrite request to the front controller
location ^~ /.well-known/ { location ^~ /.well-known/ {
allow all; allow all;
rewrite ^/(.*) /index.php?pagename=$uri&$args last; rewrite ^/(.*) /index.php?pagename=$request_uri&$args last;
} }
#statically serve these file types when possible #statically serve these file types when possible
@ -69,7 +69,7 @@ location __PATH__ {
#added .htm for advanced source code editor library #added .htm for advanced source code editor library
location ~* \.(jpg|jpeg|gif|png|ico|css|js|htm|html|ttf|woff|svg)$ { location ~* \.(jpg|jpeg|gif|png|ico|css|js|htm|html|ttf|woff|svg)$ {
expires 30d; expires 30d;
try_files $uri /index.php?pagename=$uri&$args; try_files $uri /index.php?pagename=$request_uri&$args;
} }
#block these file types #block these file types