diff --git a/templates/swiftproxy/config/httpd.conf b/templates/swiftproxy/config/httpd.conf index 6ec35e11..0abdf53e 100644 --- a/templates/swiftproxy/config/httpd.conf +++ b/templates/swiftproxy/config/httpd.conf @@ -34,7 +34,11 @@ CustomLog /dev/stdout proxy env=forwarded ## Request header rules ## as per http://httpd.apache.org/docs/2.2/mod/mod_headers.html#requestheader +{{- if $vhost.TLS }} RequestHeader set X-Forwarded-Proto "https" +{{- else }} + RequestHeader set X-Forwarded-Proto "http" +{{- end }} LimitRequestBody 5368709122 LimitRequestFields 200