allow_override:
- All
directoryindex: index.html
+
+ - provider: location
+ path: '/confluence'
+
+ - provider: location
+ path: '/synchrony'
+ rewrites:
+ - comment: 'synchrony'
+ rewrite_cond:
+ - '%{literal("%")}{HTTP:UPGRADE} ^WebSocket$ [NC]'
+ - '%{literal("%")}{HTTP:CONNECTION} Upgrade$ [NC]'
+ rewrite_rule:
+ - .* ws://test-confluence01.pixelpark.net:8091%{REQUEST_URI} [P]
+
proxy_pass:
- { path: /server-status, url: '!' }
- { path: /server-info, url: '!' }
rewrites:
- comment: 'switch to https'
rewrite_cond:
- - '%%{ich-trickse}{HTTPS} !=on [NC]'
+# - '%%{ich-trickse}{HTTPS} !=on [NC]'
+ - '%{literal("%")}{HTTPS} !=on [NC]'
rewrite_rule:
- - ^(.*)$ https://%%{ich-trickse}{HTTP_HOST}$1 [R=301,L]
+# - ^(.*)$ https://%%{ich-trickse}{HTTP_HOST}$1 [R=301,L]
+ - ^(.*)$ https://%{literal("%")}{HTTP_HOST}$1 [R=301,L]
- comment: 'Rewrite from / to /confluence'
rewrite_rule:
- ^(/?)$ /confluence/ [R=301,L]
- - comment: 'synchrony'
- rewrite_cond:
- - '%HTTP:UPGRADE} ^WebSocket$ [NC]'
- - '%{HTTP:CONNECTION} Upgrade$ [NC]'
- - comment: 'synchrony die zweite'
- rewrite_rule:
- - .* ws://test-confluence01.pixelpark.net:8091%{REQUEST_URI} [P]
\ No newline at end of file