From aed810e72550b8ef13bd47996bbb767976c65d56 Mon Sep 17 00:00:00 2001 From: plopoyop Date: Wed, 23 Jul 2014 16:56:39 +0200 Subject: [PATCH] corrections http_auth --- conf/config.php | 2 +- conf/nginx.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/config.php b/conf/config.php index 7f95fc9..79b3f5d 100644 --- a/conf/config.php +++ b/conf/config.php @@ -9,7 +9,7 @@ 'default_user' => 'yunoadminuser', 'allow_anonymous' => false, 'allow_anonymous_refresh' => false, - 'auth_type' => 'http', + 'auth_type' => 'http_auth', 'api_enabled' => true, 'unsafe_autologin_enabled' => false, ), diff --git a/conf/nginx.conf b/conf/nginx.conf index 25d520c..1c5efa8 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -3,14 +3,14 @@ location PATHTOCHANGE { if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } - index index.php; + index index.html index.php; try_files $uri $uri/ /index.php?$args; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; - fastcgi_param AUTH_USER $remote_user; + fastcgi_param REMOTE_USER $remote_user; fastcgi_param PATH_INFO $fastcgi_path_info; }