https://issues.apache.org/bugzilla/show_bug.cgi?id=55598
Bug ID: 55598
Summary: mod_write unable to proxy websocket URIs
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
Assignee: [email protected]
Reporter: [email protected]
Created attachment 30886
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30886&action=edit
Patch to add websocket protocols to is_absolute_uri(...)
Given the following rewrite rule:
RewriteRule ^/ws(.*)$ ws://localhost:9000/ws [P]
mod_rewrite treats this a filepath so the access log shows:
[26/Sep/2013:09:46:07 -0400] "GET /ws://localhost:9000/ws HTTP/1.1" 400 317
This problem is that is_absolute_uri(...) is returning 0 for URIs starting with
ws:// or wss://.
I have attached a patch against HEAD that add a case to is_absolute_uri(...) to
match the websocket protocols. This allow websocket traffic to be proxied using
mod_rewrite.
--
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]