[PATCH]upstream server directive support variable

2013-06-01 Thread flygoast
Hi, guys In my business, I need dynamicly to find the backend ip address according to the request. However, I also want to use the upstream to take advantage of load balance. So I add the variable support in server directive. For sake of avoiding blocking the whole worker due to resolving

Re: Проблема с chroot в связке Nginx + PHP-FPM

2013-06-01 Thread Vadim A. Misbakh-Soloviov
1) Не могли бы Вы включить более подробный логгинг? :) Да и попробовтаь посмотреть в файле. (который error_log в nginx'е). 2) Я бы всё-таки посоветовал не слушать то, что написано в конфигах PHP и не использовать их chroot, т.к. уже давно существует мнение, что PHP'шный chroot это то, как

Re: [LB]Bad root document set via proxy_pass

2013-06-01 Thread Francis Daly
On Thu, May 30, 2013 at 12:14:09PM -0400, mafious wrote: Hi there, Depending of the url, I forward to the proper backend: location /myApp { proxy_pass http://myApp_cluster; } But via the proxy, the web page of my application is not correctly render. The path to load images files is

Re: if statement + ssl_certificate?

2013-06-01 Thread natostanco
And is it possible to use different certificates under different subdomains having the same tld? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239732,239747#msg-239747 ___ nginx mailing list nginx@nginx.org

Re: if statement + ssl_certificate?

2013-06-01 Thread Jonathan Matthews
You mean like foo.com and bar.com? Of course - just use different server{} blocks with different SSL certificates on different IPs. Jonathan ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: if statement + ssl_certificate?

2013-06-01 Thread natostanco
No I mean like foo.bar.com and fooz.bar.com where each subdomain is declared under different server blocks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239732,239749#msg-239749 ___ nginx mailing list nginx@nginx.org

Re: Nginx SSL for backend server, do I need another server?

2013-06-01 Thread Avi Keinan
Hi, I'm going to open a website to deliver huge files over the internet, I'm planning to provide secure download (SSL) with nginx. But I don't know how much the cpu usage the ssl protocol will use, I already have lots of 2X Xeon(R) CPU E5-2609 servers, with tons of 7200RPM 3TB Sata in

Re: if statement + ssl_certificate?

2013-06-01 Thread Jonathan Matthews
On 1 June 2013 17:18, natostanco nginx-fo...@nginx.us wrote: No I mean like foo.bar.com and fooz.bar.com where each subdomain is declared under different server blocks Yes, that's how nginx works. Just use a different server_name and (unless you have a wildcard cert) a different IP for each

Re: if statement + ssl_certificate?

2013-06-01 Thread natostanco
I can't use different ips, I tried with the server_names, but the subdomain just keeps using the certificate of the tld ... Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239732,239752#msg-239752 ___ nginx mailing list nginx@nginx.org

Re: if statement + ssl_certificate?

2013-06-01 Thread B.R.
Hello, You might be interested in the following: http://nginx.org/en/docs/http/configuring_https_servers.html#name_based_https_servers --- *B. R.* ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: fastcgi_read_timeout with PHP backend

2013-06-01 Thread B.R.
Hello, I do not know if my private emails on the matter to Maxim went through. Non-broken resources were included. --- *B. R.* ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: if statement + ssl_certificate?

2013-06-01 Thread natostanco
That does not help because following that example I should use: server { listen 443 ssl; server_name www.sub1.example.com; ssl_certificate www.sub1.example.com.crt; ... } server { listen 443 ssl; server_name www.example.org; ssl_certificate

Re: if statement + ssl_certificate?

2013-06-01 Thread B.R.
I read : With this configuration a browser receives the default server’s certificate, i.e. www.example.com regardless of the requested server name. This is caused by SSL protocol behaviour. The SSL connection is established before the browser sends an HTTP request and nginx does not know the name

Re: if statement + ssl_certificate?

2013-06-01 Thread Jonathan Matthews
On 1 June 2013 18:32, natostanco nginx-fo...@nginx.us wrote: I guess either I can't declare a server with server_name equal to a subdomain of an already declared TLD. That's not the case. Nginx can do this just fine. You're coming up against the age-old SSL virtual hosting problem, which is

HTTP status code 499 from long running requests

2013-06-01 Thread justin
Hello, I have long running requests upwards of five minutes that are called via ajax (jQuery) (XHR), and hitting a backend PHP script. I am seeing very strange behavior, intermittently calling the script twice, even though in Chrome developers tools I only see a single XHR request in the network