1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/digitranscode_ynh.git synced 2024-09-03 18:25:59 +02:00

Trying another approach with rewrite

This commit is contained in:
Melchisedech 2022-03-04 00:06:28 +01:00 committed by GitHub
parent f2556498ab
commit dff5841daf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,8 +10,8 @@ location __PATH__/ {
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
#client_max_body_size 50M;
set $args $args&lang=__LANGUAGE__;
rewrite ^(.*)$ $1?lang=__LANGUAGE__ break;
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
@ -22,7 +22,6 @@ location ~ [^/]\.php(/|$) {
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
set $args $args&lang=__LANGUAGE__;
}
### End of PHP configuration part