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
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
...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
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
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
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
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.
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