2020-07-18 20:31:39 +02:00
|
|
|
location __PATH__/ {
|
2015-04-06 17:46:57 +02:00
|
|
|
|
2017-05-31 14:04:02 +02:00
|
|
|
alias __FINALPATH__/;
|
2015-04-06 17:46:57 +02:00
|
|
|
|
|
|
|
index index.html index.php ;
|
|
|
|
try_files $uri $uri/ index.php;
|
|
|
|
location ~ [^/]\.php(/|$) {
|
|
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
2020-07-18 20:31:39 +02:00
|
|
|
fastcgi_pass unix:/var/run/php7-fpm-__NAME__.sock;
|
2015-04-06 17:46:57 +02:00
|
|
|
fastcgi_index index.php;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param REMOTE_USER $remote_user;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
2015-05-12 22:19:07 +02:00
|
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
2015-04-06 17:46:57 +02:00
|
|
|
}
|
|
|
|
|
2015-04-12 01:07:14 +02:00
|
|
|
# Do not include SSOWAT user panel.
|
2017-05-30 14:25:30 +02:00
|
|
|
# include conf.d/yunohost_panel.conf.inc;
|
|
|
|
|
2015-04-12 10:13:41 +02:00
|
|
|
location ~ /(conf|history)(/|$) {
|
|
|
|
deny all;
|
|
|
|
}
|
2015-04-06 17:46:57 +02:00
|
|
|
}
|