- login:
rewrite_rule:
- '^(/)?$ https://%%{ich-trickse}{SERVER_NAME}/system/login [L,R=301]'
- - proxy_non_https:
- rewrite_cond:
- - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
- - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
- rewrite_rule:
- - '^(.*)$ http://localhost:8080/opencms$1 [P,L]'
- 404handler_non_https:
comment: 'missing export to opencms'
rewrite_cond:
- '%%{ich-trickse}{DOCUMENT_ROOT}%%{ich-trickse}{REQUEST_FILENAME} !-f'
rewrite_rule:
- '^(.*)$ http://localhost:8080/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]'
- - proxy_https:
- rewrite_cond:
- - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
- - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
- rewrite_rule:
- - '^(.*)$ http://localhost:8081/opencms$1 [P,L]'
- - 404handler_non_https:
+ - 404handler_https:
comment: 'missing export to opencms'
rewrite_cond:
- '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
- '%%{ich-trickse}{DOCUMENT_ROOT}%%{ich-trickse}{REQUEST_FILENAME} !-f'
rewrite_rule:
- '^(.*)$ http://localhost:8081/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]'
+ - proxy_non_https:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8080/opencms$1 [P,L]'
+ - proxy_https:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8081/opencms$1 [P,L]'
proxy_preserve_host: true
directories:
- access-control-fonts: