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

Update nginx.conf

This commit is contained in:
Éric Gaspar 2023-01-29 17:20:54 +01:00
parent 02493e8051
commit 981fca34a4

View file

@ -11,7 +11,7 @@ location __PATH__/ {
try_files $uri __PATH__/index.php$is_args$args; try_files $uri __PATH__/index.php$is_args$args;
location ~ [^/]\.php(/|$) { location ~ ^/index\.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 +19,8 @@ location __PATH__/ {
include fastcgi_params; include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user; fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
} }
location ~* ^[^(\.php)]+\.(jpg|jpeg|gif|png|ico|css|pdf|ppt|txt|bmp|rtf|js)$ { location ~* ^[^(\.php)]+\.(jpg|jpeg|gif|png|ico|css|pdf|ppt|txt|bmp|rtf|js)$ {