Skip to content

Commit

Permalink
Merge pull request #453 from karelyatin/rheader-ifempty
Browse files Browse the repository at this point in the history
[httpd] Set X-Forwarded-Proto only if empty
  • Loading branch information
openshift-merge-bot[bot] authored Dec 11, 2024
2 parents 33c4687 + 4a0b49a commit 383b1d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/neutronapi/httpd/10-neutron-httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
## 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"
RequestHeader setIfEmpty X-Forwarded-Proto "https"
{{- else }}
RequestHeader set X-Forwarded-Proto "http"
RequestHeader setIfEmpty X-Forwarded-Proto "http"
{{- end }}

## Proxy rules
Expand Down

0 comments on commit 383b1d3

Please sign in to comment.