You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2013/09/26 16:36:15 UTC

[Bug 55598] New: mod_write unable to proxy websocket URIs

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: bugs@httpd.apache.org
          Reporter: chris.harris@kitware.com

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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55598] mod_write unable to proxy websocket URIs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55598

Jim Jagielski <ji...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Jim Jagielski <ji...@apache.org> ---
Committed revision 1528556 in trunk. Will propose for 2.4 backport

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55598] mod_write unable to proxy websocket URIs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55598

--- Comment #2 from Chris Harris <ch...@kitware.com> ---
Getting this backported to 2.4 would be great.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55598] mod_write unable to proxy websocket URIs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55598

Chris Harris <ch...@kitware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chris.harris@kitware.com

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55598] mod_write unable to proxy websocket URIs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55598

Chris Harris <ch...@kitware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org