https://bz.apache.org/bugzilla/show_bug.cgi?id=58593

--- Comment #5 from Tabby <[email protected]> ---
Hi,
that's exactly how I did as a workaround.
---------------------------------------------------------------------------
  RewriteEngine On

  # default protocol = ws
  RewriteRule ^(.*)$ - [env=proto:ws]

  # if request is plain http, set protocol = http
  RewriteCond %{HTTP:Upgrade} !websocket [NC]
  RewriteRule ^ - [env=proto:http]

  RewriteCond %{REQUEST_URI} ^/ws/live/ [NC]
  RewriteRule ^/ws/live/(.*)  %{ENV:proto}://vip-be/wwgw/var/$1 [P,QSA,L]
---------------------------------------------------------------------------

Anyway, this way I'm forced to use mod_rewrite "Proxy" flag and this leads to
performance penalties, 'cause it won't use backend connection pooling (default
worker being used).

Is should be really nice if I could use Env interpolation even in the scheme
part of the URL (something like: ProxyPass  %{ENV:proto}://vip-be/wwgw/var/ ),
but the doc states that isn't supported.

So, is there a better solution?

Thanks.
ST

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to