Make the atomic rewrite happen at the proxies
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
41a6166fd5
commit
0ba63db834
2 changed files with 4 additions and 4 deletions
|
@ -34,3 +34,7 @@ ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
|
|||
{% else %}
|
||||
Redirect 421 /
|
||||
{% endif %}
|
||||
|
||||
# Atomic Objects
|
||||
RewriteCond %{HTTP:X-CloudFront} !^$
|
||||
RewriteRule "/atomic/repo/objects/(.*)" "https://d2os45suu8yck8.cloudfront.net/$1" [R=302,L]
|
||||
|
|
|
@ -130,7 +130,3 @@ RewriteRule ".*/.*openh264.*.(x86_64|armv7hl|i686|ppc64|ppc64le|aarch64|s390x).r
|
|||
|
||||
# Set HSTS header via HTTP since it cannot be easily set in squid, which terminates HTTPS
|
||||
Header always add Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||
|
||||
# Atomic Objects
|
||||
RewriteCond %{HTTP:X-CloudFront} !^$
|
||||
RewriteRule "/atomic/repo/objects/(.*)" "https://d2os45suu8yck8.cloudfront.net/$1" [R=302,L]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue