- cms-odt-daimler-com.pixelpark.net
ssl: false
rewrites:
-# - opencms_to_slash:
-# comment: '/opencms# to /'
-# rewrite_rule:
-# - '^/opencms/(.*)$ /$1 [R,L]'
+ - opencms_to_slash:
+ comment: '/opencms to /'
+ rewrite_rule:
+ - '^/opencms(/)?$ / [R,L]'
- https:
comment: 'all to https'
rewrite_cond:
- '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
rewrite_rule:
- '^(.*)$ http://localhost:8081/opencms$1 [P,L]'
+ - proxy_non_https_fix:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/opencms/(.*)$ http://localhost:8080/opencms/$1 [P,L]'
+ - proxy_https_fix:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/opencms/(.*)$ http://localhost:8081/opencms/$1 [P,L]'
proxy_preserve_host: true
directories:
- access-control-fonts: