added server_name param to php-fpm. Fixes #19

This commit is contained in:
Diego Lendoiro 2017-06-28 17:49:08 +02:00
parent 23b4647b3f
commit 64679be946
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed ### Fixed
- PASSBOLT-2158: corrected management of fullbaseurl throug url env variable - PASSBOLT-2158: corrected management of fullbaseurl throug url env variable
- PASSBOLT-2164: corrected typo on email_transport env variable - PASSBOLT-2164: corrected typo on email_transport env variable
- PASSBOLT-2166: http to https redirection fixed
### Added ### Added

View File

@ -36,6 +36,7 @@ server {
fastcgi_split_path_info ^(.+\.php)(.+)$; fastcgi_split_path_info ^(.+\.php)(.+)$;
include fastcgi_params; include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 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)$ { 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)(.+)$; fastcgi_split_path_info ^(.+\.php)(.+)$;
include fastcgi_params; include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 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)$ { 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)$ {