From 2b1ccb6d6e148c390e83e093967630dd2d96a329 Mon Sep 17 00:00:00 2001 From: Thomas LEBEAU Date: Mon, 16 Jun 2014 07:04:39 +0200 Subject: [PATCH] update nginx conf --- conf/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 5ba5202..7aaa33a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,11 +1,12 @@ location PATHTOCHANGE { alias ALIASTOCHANGE; - proxy_pass http://DOMAINNAMEPATHTOCHANGE/admin; if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } + rewrite ^ http://DOMAINNAMEPATHTOCHANGE/admin/ redirect; + index index.php index.html index.htm; default_type text/html;