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

27 lines
698 B
Nginx Configuration File
Raw Normal View History

2014-07-03 12:26:56 +02:00
location LOCATIONTOCHANGE {
alias ALIASTOCHANGE/;
2014-06-15 22:45:03 +02:00
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
2014-06-30 17:19:09 +02:00
try_files $uri $uri/ PATHTOCHANGE/yourls-loader.php;
2014-06-16 10:43:17 +02:00
2014-06-16 10:52:28 +02:00
index index.php index.html index.htm;
2014-06-15 22:36:13 +02:00
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm.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;
}
2014-06-16 10:48:07 +02:00
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
2014-07-03 12:26:56 +02:00
}