NGINX1.2.1 SNI provides wrong server certificate

2014-08-03 Thread ukr
Hi there, we configured NGINX 1.2.1 on debian 7.1u1 with 5 virtual host, set up a private certification authority, generated keys for all the the virt. host and configured the hosts similar to server { listen 443; server_name server1.foo.baz.bar; ssl on; ssl_certificate /etc/nginx/ssl/se

Proxy URL contains Chinese cause very slow access

2014-08-03 Thread gaop...@richinfo.cn
Proxy URL contains Chinese cause very slow access For example:http://search1.10086.cn/search?start=1&content=%E8%AF%9D%E8%B4%B9%E5%85%85%E5%80%BC&areacode=100&areaName=%E5%8C%97%E4%BA%AC nginx/1.4.7 gaop...@richinfo.cn ___ nginx mailing list nginx

Re: accpet_mutex cause nginx worker balance problem

2014-08-03 Thread xinghua_hi
hello, I still can't understand why accept_mutex cause disbalance. In code below, multi worker will try to get mutex and the question is , why one worker can always get the mutex ? I test many times, find that one worker can always accept new connection much more than others. Thanks very

Re: getting intermittent '502 bad gateway ' error.

2014-08-03 Thread Maxim Dounin
Hello! On Sat, Aug 02, 2014 at 05:09:54AM -0400, shobhit wrote: > We are using nodejs(v 0.10.29 ) ,express,nginx( version 1.4.6) with > mongodb(v 2.6.3) replicaset and getting intermittent 502 bad gateway error. > pm2 logs is unable to log error though nginx aerror.log is showing > > recv()

Re: accpet_mutex cause nginx worker balance problem

2014-08-03 Thread Maxim Dounin
Hello! On Sun, Aug 03, 2014 at 09:29:19AM -0400, xinghua_hi wrote: > hello, > > I use ab to test performance. but when i turn on accept_mutex, I > found the num of connection for every nginx worker is not balance. for > example, > I have 4 core and start 4 nginx worker. > > ab -n 3000

whitelist 'notabot' not working in limit_conn

2014-08-03 Thread Alex Flex
Iam trying to whitelist some IPs in the geo #connlimit1 so that the limit_conn doesnt apply to it. For some reason its not working... those ips are always being limited. I must be doing something obviously wrong guidance appreciated. Alex server { geo $connlimit1 { default 1;

accpet_mutex cause nginx worker balance problem

2014-08-03 Thread xinghua_hi
hello, I use ab to test performance. but when i turn on accept_mutex, I found the num of connection for every nginx worker is not balance. for example, I have 4 core and start 4 nginx worker. ab -n 30 -c 1000 -k "http://XXX/"; the establish connection of nginx worker (netstat -an

Re: change proxy_pass protocol accordingly to x-forwarded-proto

2014-08-03 Thread itpp2012
Use 'map', ea: http://danconnor.com/post/4f65ea41daac4ed03104/https_ssl_proxying_nginx_to_nginx Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252235,252238#msg-252238 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailma

change proxy_pass protocol accordingly to x-forwarded-proto

2014-08-03 Thread confiq
Hi, I have load balancer with SSL on it that connects to nginx servers. Nginx servers simply reverse proxy site X.com. The problem is that nginx servers don't have SSL certs and listing only to unsecured port but it forwards to https protocol. The question is, can I change proxy_pass URL accordin