httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <>
Subject Re: [users@httpd] RE: Web sockets & proxypass - No protocol handler was valid for the URL
Date Sun, 10 Sep 2017 22:51:04 GMT
For me, the setenvif worked but the overall test failed. I had misread
something in how mod_proxy and mod_rewrite depend on eachother.

I don't know why your SetEnvIf didn't fire.

Here's what seemed to work for me:

  RewriteEngine ON

  RewriteCond %{HTTP:Upgrade} "(?i)websocket"
  RewriteRule ^/(.*)$ ws://localhost:3000/$1 [P,L]

  RewriteRule ^/(.*)$ http://localhost:3000/$1 [P]
  # Force a worker to be created w/o ProxyPass
  <Proxy "http://localhost:3000">
    ProxySet connectiontimeout=5

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message