mirror of
https://github.com/YunoHost-Apps/horde_ynh.git
synced 2024-09-03 19:16:08 +02:00
Nginx config - Protect unnecessary path
This commit is contained in:
parent
908acb1e79
commit
e2be6fb0b4
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ location __PATH__/ {
|
|||
# Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
|
||||
client_max_body_size 50M;
|
||||
|
||||
# Protect all not necessary files
|
||||
location ~ (/templates/|(?<!js/syntaxhighlighter)\/scripts/|/lib/|/po/|/locale/|(?<!admin)\/config\/) {
|
||||
deny all;
|
||||
}
|
||||
try_files $uri $uri/ index.php;
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
|
|
Loading…
Add table
Reference in a new issue