Re: nginx rewrites $request_method on error

2014-05-14 Thread kay
Here is nginx version: nginx -V nginx version: nginx/1.6.0 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) TLS SNI support enabled configure arguments: --add-module=ngx_devel_kit-0.2.19 --add-module=lua-nginx-module-0.9.7 --add-module=memc-nginx-module-0.14 --user=apache --group=apache --prefi

Directly redirecting prefix location to named one

2014-05-14 Thread B.R.
I am considering the following locations: location / { proxy_pass http://upstream; } location /documents/ { try_files $uri @upstream; } location @upstream { proxy_pass http://upstream; } I would like to have a single named location to handle all fallbacks to upstream (to avoid dupli

Re: Unexpected SSL Behavior with Virtual Hosts

2014-05-14 Thread Steve Holdoway
Hi! On Wed, 2014-05-14 at 20:01 -0400, SAH62 wrote: > Sorry for posting this twice. I posted it in the "How to" forum last week, > there haven't been any replies, so I thought I'd try again. > > I'm using nginx for multiple virtual hosts on the same physical server. The > issue I'm having is that

Unexpected SSL Behavior with Virtual Hosts

2014-05-14 Thread SAH62
Sorry for posting this twice. I posted it in the "How to" forum last week, there haven't been any replies, so I thought I'd try again. I'm using nginx for multiple virtual hosts on the same physical server. The issue I'm having is that a browser request for https://www.domain1.org/ is being answer

Re: Return JSON for 404 error instead of html

2014-05-14 Thread justink101
Noticed that the proxy request response headers are being thrown away in our 404 block. Note that the proxied request is returning 404. If I try and fetch a header that I know is being returned from the proxy it is undefined. location @four_o_four { internal; more_set_headers "X-Host: $sen

Re: Return JSON for 404 error instead of html

2014-05-14 Thread justink101
Thanks for the replies and sorry about the delay in responding. This is what we ended up using: error_page 404 = @four_o_four; location @four_o_four { internal; more_set_headers "X-Host: web4.ourdomain.com"; more_set_headers "Content-Type: application/json"; return 404 '{"stat

Re: nginx rewrites $request_method on error

2014-05-14 Thread Yichun Zhang (agentzh)
Hello! On Tue, May 13, 2014 at 11:52 PM, kay wrote: > This config produces the same nginx hang. > > server { > listen 80; > location / { > access_by_lua ' > local res = ngx.location.capture("/memc?cmd=get&key=test") > return > '; > root /etc/

Re: perl module for nginx

2014-05-14 Thread David Coutadeur
Le 14/05/2014 18:58, Maxim Dounin a écrit : Hello! On Wed, May 14, 2014 at 06:47:26PM +0200, David Coutadeur wrote: Hello, I am trying to build a perl access handler module into nginx, thanks to this API : http://nginx.org/en/docs/http/ngx_http_perl_module.html but I have some difficulties t

Re: perl module for nginx

2014-05-14 Thread Maxim Dounin
Hello! On Wed, May 14, 2014 at 06:47:26PM +0200, David Coutadeur wrote: > > Hello, > > I am trying to build a perl access handler module into nginx, thanks to this > API : > http://nginx.org/en/docs/http/ngx_http_perl_module.html > but I have some difficulties to do so. > > Indeed, I would nee

perl module for nginx

2014-05-14 Thread David Coutadeur
Hello, I am trying to build a perl access handler module into nginx, thanks to this API : http://nginx.org/en/docs/http/ngx_http_perl_module.html but I have some difficulties to do so. Indeed, I would need some tools like - a mean to share variables between handlers, - a mean to call my handl

Re: embedded perl for nginx official release ?

2014-05-14 Thread David Coutadeur
Ok, thank you for your very complete answer ! Le 14/05/2014 18:29, Maxim Dounin a écrit : Hello! On Wed, May 14, 2014 at 05:54:34PM +0200, David Coutadeur wrote: Thank you Valentin, If I understand well, this is the message at the origin of the embedded perl Nginx ? My question was more

Re: embedded perl for nginx official release ?

2014-05-14 Thread Maxim Dounin
Hello! On Wed, May 14, 2014 at 05:54:34PM +0200, David Coutadeur wrote: > > Thank you Valentin, > > If I understand well, this is the message at the origin of the embedded perl > Nginx ? > > My question was more actual : now that there is a fork, is there a plan to > inject embedded perl in th

Re: embedded perl for nginx official release ?

2014-05-14 Thread David Coutadeur
Thank you Valentin, If I understand well, this is the message at the origin of the embedded perl Nginx ? My question was more actual : now that there is a fork, is there a plan to inject embedded perl in the standard nginx ? Do somebody know anything about the position of the developpers no

Re: embedded perl for nginx official release ?

2014-05-14 Thread Valentin V. Bartenev
On Wednesday 14 May 2014 16:07:46 David Coutadeur wrote: > Hi all, > > I am searching for information about the embedded perl Nginx roadmap... > > Is it planned to replace standard nginx by this one ? Or to integrate > embedded perl into nginx official release ? Or maybe the two projects > are to

embedded perl for nginx official release ?

2014-05-14 Thread David Coutadeur
Hi all, I am searching for information about the embedded perl Nginx roadmap... Is it planned to replace standard nginx by this one ? Or to integrate embedded perl into nginx official release ? Or maybe the two projects are too divergent ? Thank you in advance for helping. David _