From: Jim Jagielski Date: Wed, 2 Oct 2013 16:38:39 +0000 (+0000) Subject: *) mod_rewrite: Make rewrite websocket aware to allow proxying. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e06487fa1fe4ce09d12467945535022d650c37ab;p=thirdparty%2Fapache%2Fhttpd.git *) mod_rewrite: Make rewrite websocket aware to allow proxying. PR 55598. [Chris Harris ] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1528556 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index a63ab93effe..808c44a2999 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) mod_rewrite: Make rewrite websocket aware to allow proxying. + PR 55598. [Chris Harris ] + *) mod_ldap: When looking up sub-groups, use an implicit objectClass=* instead of an explicit cn=* filter. [David Hawes ] diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index 5627e66f943..27716a04036 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -589,6 +589,18 @@ static unsigned is_absolute_uri(char *uri, int *supportsqs) return 7; } break; + + case 'w': + case 'W': + if (!strncasecmp(uri, "s://", 4)) { /* ws:// */ + *sqs = 1; + return 5; + } + else if (!strncasecmp(uri, "ss://", 5)) { /* wss:// */ + *sqs = 1; + return 6; + } + break; } return 0;