|
@ -26,8 +26,11 @@ uses: |
|
|
apache-custom-rules: |
|
|
apache-custom-rules: |
|
|
- !var-expand | |
|
|
- !var-expand | |
|
|
|
|
|
|
|
|
ProxyPass /ws ws://${MASTER_BASE_SERVICE_NAME}:80/ws" |
|
|
|
|
|
ProxyPassReverse /ws ws://${MASTER_BASE_SERVICE_NAME}:80/ws" |
|
|
|
|
|
|
|
|
RewriteEngine On |
|
|
|
|
|
RewriteCond %{HTTP:Upgrade} ^websocket$ [NC] |
|
|
|
|
|
RewriteCond %{HTTP:Connection} Upgrade [NC] |
|
|
|
|
|
RewriteRule /(.*)$ ws://${MASTER_BASE_SERVICE_NAME}:80/\$1 [P,L] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<If "%{REQUEST_METHOD} == 'GET' && %{HTTPS} == 'off'"> |
|
|
<If "%{REQUEST_METHOD} == 'GET' && %{HTTPS} == 'off'"> |
|
|
RedirectMatch permanent "^/([-_A-Za-z0-9]{0,64})$" "https://%{SERVER_NAME}/$1" |
|
|
RedirectMatch permanent "^/([-_A-Za-z0-9]{0,64})$" "https://%{SERVER_NAME}/$1" |
|
|