1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yourls_ynh.git synced 2024-09-03 20:35:59 +02:00
yourls_ynh/conf/nginx.conf

29 lines
680 B
Nginx Configuration File
Raw Normal View History

2018-06-04 21:28:11 +02:00
location __PATH__ {
alias __FINALPATH__/;
2014-06-15 22:45:03 +02:00
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
2018-06-04 21:28:11 +02:00
try_files $uri $uri/ /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(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
2018-06-04 21:28:11 +02:00
fastcgi_pass unix:/var/run/php5-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;
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
2014-07-03 12:26:56 +02:00
}