CentOS Nginx Installer(include PHP-FTP, MYSQL) add website no need restart Nginx

2014-01-03 Thread ComfortVPS
Some of our clients are not good at SSH command, they just want an easy way to run their websites. Most of them are less then 1GB memory VPS and don't want install control panel. For this purpose, we wrote a CentOS Nginx Installer script for "Nginx+PHP+MySql+phpMyAdmin" What's you need to do is:

Re: Very slow dns lookup using proxy_pass

2014-01-03 Thread justin
Hi Jonathan, Using time is the only way I know how to demonstrate this: FIRST TIME TOOK: 5.8 seconds ➜ ~ time curl -i -u demo: https://api.mydomain.com/v1/ HTTP/1.1 200 OK Server: nginx Date: Sat, 04 Jan 2014 04:07:50 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: ke

Re: Very slow dns lookup using proxy_pass

2014-01-03 Thread Jonathan Matthews
On 4 January 2014 03:42, justin wrote: > I am seeing very slow DNS lookup times ( > 2 seconds ) using proxy_pass, > even though dig response times on the server are quick [snip] > Any ideas why this is so slow, and solutions? Please demonstrate a slow request, and show the data that leads you to

Very slow dns lookup using proxy_pass

2014-01-03 Thread justin
I am seeing very slow DNS lookup times ( > 2 seconds ) using proxy_pass, even though dig response times on the server are quick. Here is the nginx configuration block: location ~ ^/v1/(?.*) { resolver 8.8.4.4 4.4.4.4 valid=300s; resolver_timeout 10s; proxy_pass https://$remote_user.

Re: mainline does not include gzip module?

2014-01-03 Thread ura
ah, i found the answer.. i needed to change the javascript mimetype to 'application/javascript' Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245997,246000#msg-246000 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/l

Re: mainline does not include gzip module?

2014-01-03 Thread ura
thanks for responding. :) so... has a change been made in the way i would activate the gzip process between the stable and mainline versions? in nginx.conf? this is the list of options i was successfully using in stable (built through trial and error): gzip on; gzip_http_version 1.0;

Re: mainline does not include gzip module?

2014-01-03 Thread Valentin V. Bartenev
On Friday 03 January 2014 20:22:28 ura wrote: > i just replaced a stable install with the mainline version (1.5.8) and > noticed that the outputted files are not being gzipped. > i ran nginx -V and do not see any arguments that enable gzip. > is there a reason why the stable version included gzip a

mainline does not include gzip module?

2014-01-03 Thread ura
i just replaced a stable install with the mainline version (1.5.8) and noticed that the outputted files are not being gzipped. i ran nginx -V and do not see any arguments that enable gzip. is there a reason why the stable version included gzip and this mainline does not? do i need to manually build

Does it possible to submit duplicated request with the proxy_next_upstream on

2014-01-03 Thread 任勇全
Hi all: I am wondering if I set: proxy_next_upstream error timeout; Fox example , if the requested service is a counter , I issue the request use the interface http://example.com/incr . The request is failed on my first host A, then it is passed to the second host B , is the counter likely be

nginx ssl handshake vs apache

2014-01-03 Thread Richard Kearsley
Hi I was watching this video by fastly ceo http://youtu.be/zrSvoQz1GOs?t=24m44s he talks about the nginx ssl handshake versus apache and comes to the conclusion that apache was more efficient at mass handshakes due to nginx blocking while it calls back to openssl I was hoping to get other peop

Re: -rpath linker option?

2014-01-03 Thread Maxim Dounin
Hello! On Fri, Jan 03, 2014 at 12:18:27AM -0500, Jeffrey Walton wrote: > I'm having trouble with dll hell on Debian and Ubuntu with OpenSSL. > Debian and Ubuntu insist on runtime linking with the copy in /usr/lib. > Fedora and Red Hat are OK because they don't use OpenSSL by default, > so they ar

SSL handshake fail between nginx and my tomcat with mutual authentication

2014-01-03 Thread flash008
Hi All, I am using Nginx 1.4.4 as reverse proxy for my tomcat server. My problem is: SSL handshake failed between Nginx and tomcat with mutual SSL authentication. I have verified that Client to Nginx with mutual SSL is working. But if my upstream backend is also using https:mutual port, the path

Re: How would nginx record client IP address under TCP Multipath?

2014-01-03 Thread est
That's very helpful info. Thanks! So getsockname() and getpeername() returns the initial subflow, what's the API to get other subflows? Edit: found my answer: https://datatracker.ietf.org/doc/rfc6897/?include_text=1 by using setsockopt() and getsockopt() The functions getpeername() and getsockna