1
0
Fork 0
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:
ericgaspar 2021-05-17 21:54:15 +02:00
parent 82e733f944
commit 87caa582ba
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -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;