You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Juan Ignacio Barisich <ju...@gmail.com> on 2014/06/02 16:17:24 UTC

[users] Re: [users@httpd] Preserve protocol in httpd proxy

Jim, thanks a lot.
The configuration:
> RewriteEngine On
> RewriteCond %{HTTP:Upgrade} =WebSocket [NC,NV]
> RewriteRule ^/(.*) ws://my.backend:8080/$1 [P]
> RewriteRule ^/(.*) http://my.backend:8080/$1 [P]

works fine for me :)
What do you mean with "it's soo expensive" ?
Is rewrite less performant ?

Best regards


2014-05-31 12:53 GMT-03:00 Jim Jagielski <ji...@jagunet.com>:

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

[users@httpd] Re: [users] Re: [users@httpd] Preserve protocol in httpd proxy

Posted by Maxim Solodovnik <so...@gmail.com>.
Hello All,

Couple of months passed since this question was answered
Are mod_rewrite/mod_lua still the only options to implement this? maybe
pod_proxy is now able to handle this?

Thanks in advance

On 2 June 2014 21:17, Juan Ignacio Barisich <ju...@gmail.com> wrote:

> Jim, thanks a lot.
> The configuration:
> > RewriteEngine On
> > RewriteCond %{HTTP:Upgrade} =WebSocket [NC,NV]
> > RewriteRule ^/(.*) ws://my.backend:8080/$1 [P]
> > RewriteRule ^/(.*) http://my.backend:8080/$1 [P]
>
> works fine for me :)
> What do you mean with "it's soo expensive" ?
> Is rewrite less performant ?
>
> Best regards
>
>
> 2014-05-31 12:53 GMT-03:00 Jim Jagielski <ji...@jagunet.com>:
>
> 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 <rp...@apache.org> 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
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>


-- 
WBR
Maxim aka solomax