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;