From 70c25cff8c4dc4b92e204149c4fc865142f66251 Mon Sep 17 00:00:00 2001 From: Thomas LEBEAU Date: Mon, 16 Jun 2014 07:21:15 +0200 Subject: [PATCH] update nginx conf --- conf/nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index e69393c..b6bc4fc 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,5 @@ location PATHTOCHANGEadmin/ { - + } location PATHTOCHANGE { @@ -9,11 +9,11 @@ location PATHTOCHANGE { rewrite ^ https://$server_name$request_uri? permanent; } - rewrite ^ http://DOMAINNAMEPATHTOCHANGE/admin/ redirect; - index index.php index.html index.htm; default_type text/html; + rewrite ^/(.*)$ http://DOMAINNAMEPATHTOCHANGE/admin/$1 redirect; + location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php5-fpm.sock;