Skip to content

Commit

Permalink
Merge pull request #307 from openshift-cherrypick-robot/cherry-pick-3…
Browse files Browse the repository at this point in the history
…06-to-18.0-fr1

[18.0-fr1] [httpd] Set X-Forwarded-Proto only if empty
  • Loading branch information
openshift-merge-bot[bot] authored Dec 19, 2024
2 parents e71e207 + 4b9ceed commit 694a0a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/swiftproxy/config/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
RequestHeader set X-Forwarded-Proto "https"
{{- if $vhost.TLS }}
RequestHeader setIfEmpty X-Forwarded-Proto "https"
{{- else }}
RequestHeader setIfEmpty X-Forwarded-Proto "http"
{{- end }}

LimitRequestBody 5368709122
LimitRequestFields 200
Expand Down

0 comments on commit 694a0a6

Please sign in to comment.