From 07ebaa65f3f57f8c341509980fa63c15c3c9243d Mon Sep 17 00:00:00 2001 From: Hertzel Armengol Date: Mon, 7 Dec 2020 07:18:22 -0600 Subject: [PATCH] added nginx configuration changes for the vhost --- drupal/rootfs/etc/nginx/conf.d/default.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drupal/rootfs/etc/nginx/conf.d/default.conf b/drupal/rootfs/etc/nginx/conf.d/default.conf index 281eb7fd..c2d97745 100644 --- a/drupal/rootfs/etc/nginx/conf.d/default.conf +++ b/drupal/rootfs/etc/nginx/conf.d/default.conf @@ -47,6 +47,9 @@ server { location / { # try_files $uri @rewrite; # For Drupal <= 6 + proxy_buffer_size 512k; + proxy_buffers 8 256k; + proxy_busy_buffers_size 512k; try_files $uri /index.php?$query_string; # For Drupal >= 7 } @@ -90,7 +93,11 @@ server { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param QUERY_STRING $query_string; + fastcgi_param HTTPS on; + fastcgi_param HTTP_SCHEME https; fastcgi_intercept_errors on; + fastcgi_buffers 16 16k; + fastcgi_buffer_size 32k; # PHP 7 socket location. fastcgi_pass unix:/var/run/php-fpm7/php-fpm7.sock; } @@ -118,4 +125,4 @@ server { if ($request_uri ~* "^(.*/)index\.php(.*)") { return 307 $1$2; } -} +} \ No newline at end of file