2020-09-25 10:59:45 +02:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
location __PATH__/ {
|
2014-06-15 22:45:03 +02:00
|
|
|
|
2020-09-25 10:59:45 +02:00
|
|
|
alias __FINALPATH__/;
|
2014-06-15 22:45:03 +02:00
|
|
|
|
2020-09-25 10:59:45 +02:00
|
|
|
# Force usage of https
|
|
|
|
if ($scheme = http) {
|
|
|
|
rewrite ^ https://$server_name$request_uri? permanent;
|
|
|
|
}
|
2017-07-16 10:19:13 +02:00
|
|
|
|
2020-09-25 10:59:45 +02:00
|
|
|
try_files $uri $uri/ __FINALPATH__/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
|
|
|
|
2020-09-25 10:59:45 +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
|
|
|
}
|