From 1e85c8609eec8524cbbe9f2ffb2e8cf2421bf1f8 Mon Sep 17 00:00:00 2001 From: Thomas LEBEAU Date: Mon, 30 Jun 2014 17:19:09 +0200 Subject: [PATCH] udpate nginx conf /via ju --- conf/nginx.conf | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 5975b12..17b0e02 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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;