Skip to content

Commit

Permalink
[OSPRH-12378] Set X-Forwarded-Proto only if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarriba committed Jan 16, 2025
1 parent 1bc386e commit 3cdbe39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/ceilometercentral/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 3cdbe39

Please sign in to comment.