mirror of
https://github.com/YunoHost-Apps/matomo_ynh.git
synced 2024-09-03 19:45:56 +02:00
Update nginx.conf
This commit is contained in:
parent
82e733f944
commit
87caa582ba
1 changed files with 2 additions and 5 deletions
|
@ -14,7 +14,8 @@ location __PATH__/ {
|
|||
# Common parameter to increase upload size limit in conjunction with dedicated PHP-FPM file
|
||||
client_max_body_size 100M;
|
||||
|
||||
try_files $uri $uri/ index.php;
|
||||
try_files $uri $uri/ =404;
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
||||
|
@ -32,10 +33,6 @@ location __PATH__/ {
|
|||
return 403;
|
||||
}
|
||||
|
||||
location __PATH__/ {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
## disable all access to the following directories
|
||||
location __PATH__/(config|tmp|core|lang) {
|
||||
deny all;
|
||||
|
|
Loading…
Reference in a new issue