2018-06-04 21:28:11 +02:00
|
|
|
location __PATH__ {
|
|
|
|
alias __FINALPATH__/;
|
2014-06-15 22:45:03 +02:00
|
|
|
|
|
|
|
|
2017-07-16 10:19:13 +02:00
|
|
|
if ($scheme = http) {
|
|
|
|
rewrite ^ https://$server_name$request_uri? permanent;
|
|
|
|
}
|
|
|
|
|
2018-09-26 10:33:25 +02:00
|
|
|
try_files $uri $uri/ __PATHTOCHANGE__/yourls-loader.php;
|
2014-06-16 10:43:17 +02:00
|
|
|
|
2014-06-15 22:36:13 +02:00
|
|
|
|
2015-08-29 02:30:09 +02:00
|
|
|
index index.php index.html index.htm;
|
2014-06-15 22:36:13 +02:00
|
|
|
|
2017-07-20 22:17:59 +02:00
|
|
|
|
|
|
|
location ~ [^/]\.php(/|$) {
|
2017-07-16 10:19:13 +02:00
|
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
2020-09-25 10:37:02 +02:00
|
|
|
fastcgi_pass unix:/var/run/php__PHPVERSION__-fpm-__NAME__.sock;
|
2017-07-16 10:19:13 +02:00
|
|
|
fastcgi_index index.php;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param REMOTE_USER $remote_user;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-06-13 07:30:00 +02:00
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2014-07-03 12:26:56 +02:00
|
|
|
}
|