custom_fragment: |
ProxyTimeout 3600
rewrites:
- - opencms_to_slash:
+ rewrites_non_ssl:
+ - opencms_to_slash_http:
comment: '/opencms to /'
rewrite_rule:
- - '^/opencms/(.*)$ /$1 [R,L]'
- rewrites_non_ssl:
+ - 'RewriteRule ^/opencms/(.*)$ http://localhost:8080/opencms/$1 [P,L]'
- https:
comment: 'all to https'
rewrite_rule:
rewrite_rule:
- '^(.*)$ http://localhost:8080/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]'
rewrites_ssl:
+ - opencms_to_slash_https:
+ comment: '/opencms to /'
+ rewrite_rule:
+ - 'RewriteRule ^/opencms/(.*)$ http://localhost:8081/opencms/$1 [P,L]'
- proxy_https:
rewrite_cond:
- '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'