I have an idea which could be pretty simple to
implement and not add yet-another ProxyPass parameter.

A special scheme.

Ideally, something like

        ProxyPass / *://foo.example.com/

would be nice, with the special scheme '*' saying
"use the scheme of the request", but apr_uri_parse
barfs on that.

So how about 'passthru' as the special scheme? Or
maybe just 'pass', 'scheme' or even 'glob' ??

On May 31, 2014, at 11:53 AM, Jim Jagielski <[email protected]> wrote:

> I'm sure we can do w/ mod_rewrite... it's just that
> it's soo expensive :)
> 
> On May 30, 2014, at 3:40 PM, Ruediger Pluem <[email protected]> wrote:
> 
>> 
>> 
>> Jim Jagielski wrote:
>>> Off the top of my head, I think we would need to
>>> add another proxypass option.
>> 
>> Have you tried the following?
>> 
>> RewriteEngine On
>> RewriteCond %{HTTP:Upgrade} =WebSocket [NC,NV]
>> RewriteRule ^/(.*) ws://my.backend:8080/$1 [P]
>> RewriteRule ^/(.*) http://my.backend:8080/$1 [P]
>> 
>> 
>> 
>> Regards
>> 
>> RĂ¼diger
>> 
> 

Reply via email to