From 64679be9469a95148631fb7d53503aabea7c427e Mon Sep 17 00:00:00 2001 From: Diego Lendoiro Date: Wed, 28 Jun 2017 17:49:08 +0200 Subject: [PATCH] added server_name param to php-fpm. Fixes #19 --- CHANGELOG.md | 1 + conf/passbolt.conf | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f0d11d..4324e31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - PASSBOLT-2158: corrected management of fullbaseurl throug url env variable - PASSBOLT-2164: corrected typo on email_transport env variable +- PASSBOLT-2166: http to https redirection fixed ### Added diff --git a/conf/passbolt.conf b/conf/passbolt.conf index 57df81e..af68783 100644 --- a/conf/passbolt.conf +++ b/conf/passbolt.conf @@ -36,6 +36,7 @@ server { fastcgi_split_path_info ^(.+\.php)(.+)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param SERVER_NAME $http_host; } location ~* \.(jpe?g|woff|woff2|ttf|gif|png|bmp|ico|css|js|json|pdf|zip|htm|html|docx?|xlsx?|pptx?|txt|wav|swf|svg|avi|mp\d)$ { @@ -86,6 +87,7 @@ server { fastcgi_split_path_info ^(.+\.php)(.+)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param SERVER_NAME $http_host; } location ~* \.(jpe?g|woff|woff2|ttf|gif|png|bmp|ico|css|js|json|pdf|zip|htm|html|docx?|xlsx?|pptx?|txt|wav|swf|svg|avi|mp\d)$ {