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;