1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monica_ynh.git synced 2024-09-03 19:46:23 +02:00

Trying to fix subpath

This commit is contained in:
yalh76 2021-06-11 23:53:33 +02:00
parent 4498ce6d9e
commit f7e82a8e7d

View file

@ -1,5 +1,5 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location ^~ __PATH__/ {
location __PATH__/ {
# Path to source
alias __FINALPATH__/public/;
@ -15,14 +15,14 @@ location ^~ __PATH__/ {
#client_max_body_size 50M;
try_files $uri $uri/ @monica;
location ~ \.php {
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
}