diff --git a/conf/nginx.conf b/conf/nginx.conf index 5e83d48..64bfeef 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,10 +1,13 @@ location PATHTOCHANGE { alias ALIASTOCHANGE; - - root var/www/PATHTOCHANGE/sources/admin/ + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } index index.php index.html index.htm; + try_files $uri $uri/ index.php; default_type text/html; + location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php5-fpm.sock;