add_header is not working in certain locations

2014-08-12 Thread bodomic
Hi all, I've got strange behavior that I don't understand in two different configs. I'll post examples below, in both of them I use add_header two times and one of them is not working while second does. Example 1: Request is: http://hostname/?region=XX #This location adds header, so it's frankly

reverse proxy images - windows

2014-08-12 Thread gmlopez
I've configured a reverse proxy for images on a windows box however it is not working as expected. First time I send a request to the server and I get the image with an http 200 as expected. Second hit the request hangs for about a minute returning an http 304 as expected however I do not understa

Re: Using proxy_ssl_verify getting error: upstream SSL certificate verify error: (20:unable to get local issuer certificate)

2014-08-12 Thread justink101
Sorry, the proxy_ssl_ciphers directive got cut off, in full it is: proxy_ssl_ciphers "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS"; Posted at

Using proxy_ssl_verify getting error: upstream SSL certificate verify error: (20:unable to get local issuer certificate)

2014-08-12 Thread justink101
I am trying to use proxy_ssl_verify on, but I am getting back 502 Bad Gateway. When I look at the logs I see: 2014/08/12 18:08:03 [error] 21007#0: *3 upstream SSL certificate verify error: (20:unable to get local issuer certificate) while SSL handshaking to upstream, client: XX.XXX.XXX.214, server

Re: How to call redis2-nginx-module or any other module from another module

2014-08-12 Thread Yichun Zhang (agentzh)
Hello! On Tue, Aug 12, 2014 at 5:16 AM, ajaybodhe wrote: > redis2-nginx-module is written with all location configs. > Does it mean that the module can only be called from browser with some url? > If I want to introduce new module into reuest processing path & call > redis2-nginx-module to fetch d

Re: Does nginx support openstack swift API?

2014-08-12 Thread jianjun.fang2...@gmail.com
Hi, hexiay, I am not sure whether this email thread is still active. However, I am encountering the similar issue you described. Based on your answer, you have found a solution, Do you mind sharing it? Or any one has the suggestion on how to configure Nginx HTTP Auth Request module to accomplish i

Re: Introducing ngxLuaDB powered by nginx for Windows

2014-08-12 Thread c0nw0nk
Fantastic work itpp2012 <3 love every realease of your builds just gets better and better i tested with my servers your builds and was able to output over 100million requests with Nginx, PHP and MySQL with a Joomla 2.5 site and it did not even break a sweat. Posted at Nginx Forum: http://forum.ng

Re: How to call redis2-nginx-module or any other module from another module

2014-08-12 Thread Wandenberg Peixoto
By default redis2-nginx-module execute some commands on redis and return the redis response to the client directly. So you receive something like +OK $5 world If you want to manipulate this response on you nginx.conf ("config") you have to do more work, probably using another language like lua. If

Re: How to call redis2-nginx-module or any other module from another module

2014-08-12 Thread ajaybodhe
Thanks @wandenberg. Can you clarify more on, what do you mean by getting the value from "config" : But, if you want to get the value from your "config" and use it there, Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252501,252506#msg-252506 __

Re: SSL_write() failed (SSL:) (1: operation not permitted) when serving MP4 over HTTPS

2014-08-12 Thread insilica
Just an update, I forgot to add, It seems it's possibly related to chrome? (currently running Version 33.0.1750.117) I converted the mp4 to ogv, same issue, but only in chrome, the android version of chrome refuses to load period. Firefox is fine. So probably not nginx related at all. Posted at

Re: How to call redis2-nginx-module or any other module from another module

2014-08-12 Thread Wandenberg Peixoto
If you need to call redis from your code, you can take a look on redis_nginx_adapter . But, if you want to get the value from your "config" and use it there, probably you have to use some other language like perl or lua, I'm not 100% sure On Tue,

How to call redis2-nginx-module or any other module from another module

2014-08-12 Thread ajaybodhe
redis2-nginx-module is written with all location configs. Does it mean that the module can only be called from browser with some url? If I want to introduce new module into reuest processing path & call redis2-nginx-module to fetch data from redis how I can do it? Posted at Nginx Forum: http://fo

Re: 404 on Prestashop 1.5 under nginx

2014-08-12 Thread David B.
Hi, Here is the right solution. you should not set all redirection in nginx configuration server section as some proposed. you'll have to modify the file each time you want to add a url redirection. To make it nice : You shoud 1st modify the pool of php-fpm, env[HTTP_MOD_REWRITE] = "on" This

Re: SSL_write() failed (SSL:) (1: operation not permitted) when serving MP4 over HTTPS

2014-08-12 Thread insilica
Sorry forgot to add the nginx version, running on FreeBSD 10.0-Rlease-p7 nginx version: nginx/1.7.4 TLS SNI support enabled configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-

SSL_write() failed (SSL:) (1: operation not permitted) when serving MP4 over HTTPS

2014-08-12 Thread insilica
Hi, I've searched the mailing list but haven't found anything relating to this error:, the closest I found: http://trac.nginx.org/nginx/ticket/428 - however that was closed 6 weeks ago and the error I get is with/without SPDY. I can't see whether I have misconfigured something? or it may be a bug

CPU Intensive Tasks inside Nginx Module

2014-08-12 Thread ajaybodhe
Hello, I am writing an application server as Nginx standard module, This code is supposed to perform some CPU intensive tasks. If the single thread/master-process in Nginx doing event-loop is stuck inside this part then throughput/performance of server would drop. What is the way to execute this?

How to write async http web client inside nginx code?

2014-08-12 Thread ajaybodhe
I am writing an application server whose code will be written as nginx module (c/c++). This server is supposed to send HTTP Requests to other servers & wait for response from them for 200-400ms. If I use libcurl to make http calls then the single thread of nginx will be blocked & event loop will n