- '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
rewrite_rule:
- '^(.*)$ https://%%{ich-trickse}{SERVER_NAME}$1 [R=301,L]'
+ - comment: 'Proxy'
+ rewrite_rule:
+ - '^/proxy/(.*)\.js$ https://$1.js [P,L,QSA]'
- comment: 'Redirects'
rewrite_rule:
- '^(/)?$ https://%%{ich-trickse}{SERVER_NAME}/de-DE [R=301,L]'
- 'set X-Content-Type-Options: nosniff'
- 'set Strict-Transport-Security: max-age=31536000 env=HTTPS'
access_log_format: remote_combined
+ custom_fragment: |
+ <Location /proxy>
+ ProxyPreserveHost off
+ Header set Cache-Control "max-age=216000, private"
+ Header unset Expires
+ ExpiresByType text/javascript "access plus 1 month"
+ </Location>
+ SSLProxyEngine on
+ ProxyVia Off
+ #SSLProxyVerify none
+ #SSLProxyCheckPeerCN off
+ #SSLProxyCheckPeerName off
logstash::generic_resource:
webapp:
- '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
rewrite_rule:
- '^(.*)$ https://%%{ich-trickse}{SERVER_NAME}$1 [R=301,L]'
+ - comment: 'Proxy'
+ rewrite_rule:
+ - '^/proxy/(.*)\.js$ https://$1.js [P,L,QSA]'
- comment: 'Redirects'
rewrite_rule:
- '^(/)?$ https://%%{ich-trickse}{SERVER_NAME}/de-DE [R=301,L]'
- 'set X-Content-Type-Options: nosniff'
- 'set Strict-Transport-Security: max-age=31536000 env=HTTPS'
access_log_format: remote_combined
+ custom_fragment: |
+ <Location /proxy>
+ ProxyPreserveHost off
+ Header set Cache-Control "max-age=216000, private"
+ Header unset Expires
+ ExpiresByType text/javascript "access plus 1 month"
+ </Location>
+ SSLProxyEngine on
+ ProxyVia Off
+ #SSLProxyVerify none
+ #SSLProxyCheckPeerCN off
+ #SSLProxyCheckPeerName off
logstash::generic_resource:
webapp:
- '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
rewrite_rule:
- '^(.*)$ https://%%{ich-trickse}{SERVER_NAME}$1 [R=301,L]'
+ - comment: 'Proxy'
+ rewrite_rule:
+ - '^/proxy/(.*)\.js$ https://$1.js [P,L,QSA]'
- comment: 'Redirects'
rewrite_rule:
- '^(/)?$ https://%%{ich-trickse}{SERVER_NAME}/de-DE [R=301,L]'
- 'set X-Content-Type-Options: nosniff'
- 'set Strict-Transport-Security: max-age=31536000 env=HTTPS'
access_log_format: remote_combined
+ custom_fragment: |
+ <Location /proxy>
+ ProxyPreserveHost off
+ Header set Cache-Control "max-age=216000, private"
+ Header unset Expires
+ ExpiresByType text/javascript "access plus 1 month"
+ </Location>
+ SSLProxyEngine on
+ ProxyVia Off
+ #SSLProxyVerify none
+ #SSLProxyCheckPeerCN off
+ #SSLProxyCheckPeerName off
logstash::generic_resource:
webapp: