Re: RE: Web sockets & proxypass - No protocol handler was valid for the URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: users@xxxxxxxxxxxxxxxx
- Subject: Re: RE: Web sockets & proxypass - No protocol handler was valid for the URL
- From: Eric Covener <covener@xxxxxxxxx>
- Date: Sun, 10 Sep 2017 18:51:04 -0400
- In-reply-to: <DE556438-3EB6-444A-BD2F-4EFDFFA82854@gmail.com>
- Reply-to: users@xxxxxxxxxxxxxxxx
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
</Proxy>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]