1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yeswiki_ynh.git synced 2024-09-03 18:05:56 +02:00

fix(nginx) : no web access to private folder

This commit is contained in:
Florian 2023-09-07 00:21:56 +03:00 committed by GitHub
parent 93d6428157
commit afda58febf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,13 @@ location __PATH__/ {
client_max_body_size 500M;
try_files $uri $uri/ index.php;
# private folder for YesWiki
location ~* /(.*/)?private/ {
deny all;
return 403;
}
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;