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

Updated nginx.conf

This commit is contained in:
Steven Roose 2015-08-29 02:30:09 +02:00
parent b2233fac5d
commit 7ac0f33801

View file

@ -1,19 +1,21 @@
location LOCATIONTOCHANGE { location LOCATIONTOCHANGE {
alias ALIASTOCHANGE/; alias ALIASTOCHANGE/;
try_files $uri $uri/ PATHTOCHANGE/yourls-loader.php; try_files $uri $uri/ PATHTOCHANGE/yourls-loader.php;
index index.php index.html index.htm; index index.php index.html index.htm;
location ~ \.php$ { location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+.php)(/.+)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php; fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params;
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 SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;
} }