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:
parent
57fdba3a14
commit
83b68e639b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue