httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject Re: UDS support for mod_rewrite
Date Wed, 22 Jan 2014 15:19:47 GMT
Instead of using ProxyPass you can also use a <Proxy > block to force the creation of
a worker.

Regards

Rüdiger

Juan José Medina Godoy wrote:
> Cool :).
> 
> As a workaround for that limitation I was using a "hack" (in case someone finds it useful):
> 
> ProxyPass /mybackend-fpm-proxy !
> ProxyPass /mybackend-fpm-proxy unix:/path/to/www.sock|fcgi://mybackend-fpm/
> ...
> RewriteRule ^(.*\.php(/.*)?)$ fcgi://mybackend-fpm/%{REQUEST_FILENAME} [P,L]
> ...
> 
> As the workers are find by url, I can omit the socket it the rewrite, but I'm forced
to define them using a ProxyPass.
> As I'm not interested in mapping an url to the proxy, I disable it (with the ! part),
which looks really ugly :).
> 
> Do you think that approach is safe or is it likely to break at some point? (relaying
on the workers being located by url
> in that way, without having to provide the socket in the rewrite)
> 
> Best regards,
> 
> Juanjo.
> 
> 
> 
> 2014/1/21 Jim Jagielski <jim@jagunet.com <mailto:jim@jagunet.com>>
> 
>     FWIW, I'm looking into adding UDS support for mod_rewrite (et.al <http://et.al>.)
>     by making the generic default reverse proxy worker UDS aware.
> 
> 

Mime
View raw message