1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/proxitok_ynh.git synced 2024-09-03 20:15:53 +02:00
This commit is contained in:
ericgaspar 2022-12-31 14:46:39 +01:00
parent ad23872fec
commit 2803aeb924
2 changed files with 3 additions and 5 deletions

View file

@ -6,8 +6,10 @@ location __PATH__/ {
index index.php; index index.php;
try_files $uri @rewriteapp; # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
client_max_body_size 50M;
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
@ -19,7 +21,3 @@ location __PATH__/ {
fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_FILENAME $request_filename;
} }
} }
location @rewriteapp {
rewrite ^(.*)$ /index.php/$1 last;
}