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

udpate nginx conf /via ju

This commit is contained in:
Thomas LEBEAU 2014-06-30 17:19:09 +02:00
parent 8bdd705dbb
commit 1e85c8609e

View file

@ -1,21 +1,10 @@
location PATHTOCHANGE {
alias ALIASTOCHANGE;
try_files $uri $uri/ @yourls;
try_files $uri $uri/ PATHTOCHANGE/yourls-loader.php;
index index.php index.html index.htm;
if (-f $request_filename) {
expires max;
break;
}
if (!-e $request_filename) {
rewrite ^/([0-9a-z]+)/?$ /yourls-go.php?id=$1 last;
rewrite ^/([0-9a-z]+)\+/?$ /yourls-infos.php?id=$1 last;
rewrite ^/([0-9a-z]+)\+all/?$ /yourls-infos.php?id=$1&all=1 last;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
@ -24,10 +13,6 @@ location PATHTOCHANGE {
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;