2020-11-02 12:24:37 +01:00
|
|
|
location __PATH__/cache {
|
2017-02-01 20:46:17 +01:00
|
|
|
rewrite ^(.*)$ /error break;
|
2020-11-02 12:24:37 +01:00
|
|
|
}
|
2017-01-18 11:22:49 +01:00
|
|
|
|
2020-11-02 12:24:37 +01:00
|
|
|
location __PATH__/content {
|
2017-01-18 11:22:49 +01:00
|
|
|
rewrite ^(.*)$ /error break;
|
2020-11-02 12:24:37 +01:00
|
|
|
}
|
2017-01-18 11:22:49 +01:00
|
|
|
|
2020-11-02 12:24:37 +01:00
|
|
|
location __PATH__/system {
|
2017-01-18 11:22:49 +01:00
|
|
|
rewrite ^(.*)$ /error break;
|
2020-11-02 12:24:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
location __PATH__/ {
|
|
|
|
|
2023-09-23 17:01:58 +02:00
|
|
|
alias __INSTALL_DIR__/ ;
|
2020-11-02 12:24:37 +01:00
|
|
|
|
|
|
|
index yellow.php;
|
|
|
|
|
|
|
|
if (!-e $request_filename) {
|
|
|
|
rewrite ^(.*)$ __PATH__/yellow.php last;
|
|
|
|
break;
|
2017-01-18 11:22:49 +01:00
|
|
|
}
|
2017-02-01 20:46:17 +01:00
|
|
|
|
2020-11-02 12:24:37 +01:00
|
|
|
try_files $uri $uri/ yellow.php;
|
|
|
|
location ~ [^/]\.php(/|$) {
|
2017-02-01 20:46:17 +01:00
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
2024-08-31 08:57:40 +02:00
|
|
|
fastcgi_pass unix:/var/run/php/php__PHP_VERSION__-fpm-__APP__.sock;
|
2017-02-01 20:46:17 +01:00
|
|
|
fastcgi_index yellow.php;
|
|
|
|
include fastcgi_params;
|
2020-11-02 12:24:37 +01:00
|
|
|
fastcgi_param REMOTE_USER $remote_user;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
2017-02-01 20:47:45 +01:00
|
|
|
}
|
2020-11-02 12:24:37 +01:00
|
|
|
|
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2017-01-18 11:22:49 +01:00
|
|
|
}
|