2020-09-25 10:59:45 +02:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
location __PATH__/ {
|
2022-02-26 20:58:51 +01:00
|
|
|
|
2022-02-26 20:35:40 +01:00
|
|
|
# Path to source
|
2023-03-05 12:42:46 +01:00
|
|
|
alias __INSTALL_DIR__/;
|
2014-06-15 22:45:03 +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
|
|
|
|
2022-02-27 08:59:48 +01:00
|
|
|
try_files $uri $uri/ __PATH__/yourls-loader.php;
|
2022-02-26 20:58:51 +01:00
|
|
|
|
2020-09-25 10:59:45 +02:00
|
|
|
location ~ [^/]\.php(/|$) {
|
2022-02-26 20:35:40 +01:00
|
|
|
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 SCRIPT_FILENAME $request_filename;
|
2017-07-16 10:19:13 +02:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|