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

2014-09-14 Thread Maxim Solodovnik
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 wrote: > Jim, thanks a lot. > The configuration: > > R

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

2014-06-02 Thread Juan Ignacio Barisich
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

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

2014-05-31 Thread Daniel Gruno
...Or with mod_lua at a 1/10th of the price of mod_rewrite if configured properly :-) # httpd.conf: LuaMapToStorage /path/to/script.lua proxyhandler -- script.lua: function proxyhandler(r) r.handler = "proxy-server" r.proxyreq = apache2.PROXYREQ_REVERSE -- or whatever you like. if r.header

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

2014-05-31 Thread Jim Jagielski
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 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

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

2014-05-30 Thread Jim Jagielski
Off the top of my head, I think we would need to add another proxypass option. On May 30, 2014, at 10:21 AM, Maxim Solodovnik wrote: > I also would like to know :) > Is it also possible using Apache 2.4.7? > > > On Fri, May 30, 2014 at 9:08 PM, Jim Jagielski wrote: > Hmmm... let me mull this

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

2014-05-30 Thread Maxim Solodovnik
I also would like to know :) Is it also possible using Apache 2.4.7? On Fri, May 30, 2014 at 9:08 PM, Jim Jagielski wrote: > Hmmm... let me mull this over. > > BTW: CCing on dev@ > On May 29, 2014, at 11:18 AM, Juan Ignacio Barisich < > juan.baris...@gmail.com> wrote: > > > I need to configure

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

2014-05-30 Thread Jim Jagielski
Hmmm... let me mull this over. BTW: CCing on dev@ On May 29, 2014, at 11:18 AM, Juan Ignacio Barisich wrote: > I need to configure in Apache 2.4.9 (with mod_proxy and mod_proxy_wstunnel > activated) a proxy with this mapping: > > - http://my.proxy/* --> http://my.backend:8080/* > - ws://my.

[users@httpd] Preserve protocol in httpd proxy

2014-05-29 Thread Juan Ignacio Barisich
I need to configure in Apache 2.4.9 (with mod_proxy and mod_proxy_wstunnel activated) a proxy with this mapping: - http://my.proxy/* --> http://my.backend:8080/* - ws://my.proxy/*--> ws://my.backend:8080/* E.g.: - ws://my.proxy/cometd-demo-2.8.0/cometd --> ws://my.backend:8080/cometd-demo