Skip to content

Commit

Permalink
added nginx configuration changes for the vhost
Browse files Browse the repository at this point in the history
  • Loading branch information
Hertzel Armengol committed Dec 7, 2020
1 parent 72de41f commit 07ebaa6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drupal/rootfs/etc/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -118,4 +125,4 @@ server {
if ($request_uri ~* "^(.*/)index\.php(.*)") {
return 307 $1$2;
}
}
}

0 comments on commit 07ebaa6

Please sign in to comment.