Skip to content

Commit 172c98b

Browse files
Fryguysimaishi
authored andcommitted
Merge branch 'add_request_header_directives_2' into '5.12.z'
Add the RequestHeader directive to httpd conf in the templates See merge request cloudforms/cfme-pods!3 (cherry picked from commit 6096d8a50d1c940383328b162b1aa434921f9102)
1 parent 34f62f8 commit 172c98b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

templates/miq-template-ext-db.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ objects:
347347
ServerName https://%{REQUEST_HOST}
348348
349349
ProxyPreserveHost on
350+
RequestHeader set Host ${APPLICATION_DOMAIN}
351+
RequestHeader set X-Forwarded-Host ${APPLICATION_DOMAIN}
350352
351353
RewriteCond %{REQUEST_URI} ^/ws [NC]
352354
RewriteCond %{HTTP:UPGRADE} ^websocket$ [NC]

templates/miq-template.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ objects:
162162
ServerName https://%{REQUEST_HOST}
163163
164164
ProxyPreserveHost on
165+
RequestHeader set Host ${APPLICATION_DOMAIN}
166+
RequestHeader set X-Forwarded-Host ${APPLICATION_DOMAIN}
165167
166168
RewriteCond %{REQUEST_URI} ^/ws [NC]
167169
RewriteCond %{HTTP:UPGRADE} ^websocket$ [NC]

0 commit comments

Comments
 (0)