diff --git a/files/config/nginx.conf b/files/config/nginx.conf
index b8780cf47ea373feded9b8099cc76b427a79aaee..59f8e3f33a20063ebbebe05812c5666257ac8a90 100644
--- a/files/config/nginx.conf
+++ b/files/config/nginx.conf
@@ -23,6 +23,7 @@ http {
 	types_hash_max_size 2048;
 	server_tokens off;
 	reset_timedout_connection on;
+	large_client_header_buffers 4 32k;
 
 	server_names_hash_bucket_size 64;
 	map_hash_bucket_size 64;
diff --git a/templates/vhost.conf.j2 b/templates/vhost.conf.j2
index 7cb386aaa11488d87e0f077d5b889908443c4ac6..3d8fbb498874989548b0a4f6b9146aad5088b136 100644
--- a/templates/vhost.conf.j2
+++ b/templates/vhost.conf.j2
@@ -47,6 +47,8 @@ server {
 		{% if location.backend|d(False) %}
 		proxy_pass {{ location.backend }};
 
+		proxy_buffering off;
+
 		# add proxy headers
 		proxy_set_header Host			{{ vhost.host }};
 		proxy_set_header X-Real-IP		$remote_addr;