Getting things humming on a 4 gig server

2013-11-12 Thread Ian Evans
Will soon be migrating from a 2 gig CentOS server to a 4 Gig Ubuntu. We'll be running nginx (of course), php-fpm, the fastcgi cache, MariaDB and Zend Opcache. Though I realize that 4 gigs of RAM is still modest, it is twice what we've previously had. I'm just curious for some general suggestio

Inconsistency in ability to use variables in nginx config

2013-11-12 Thread miguel_hamster
It seems like it's possible to use variables in some configuration directives but not in others. This works: root /usr/www/$sitename/httpdocs; works, while these: access_log /var/log/www/$sitename/access.log; proxy_cache $sitename; do not, instead generating errors when I try to restart nginx.

[ANN] ngx_openresty stable version 1.4.3.4 released

2013-11-12 Thread Yichun Zhang (agentzh)
Hello folks! I am happy to announce that the new stable version of ngx_openresty, 1.4.3.4, is now released: http://openresty.org/#Download Special thanks go to my employer, CloudFlare, for supporting the development of OpenResty (and also LuaJIT!). The following components are bundled in th

limit_req_zone limit by location/proxy

2013-11-12 Thread Justin Deltener
For the life of me I can't seem to get my configuration correct to limit requests. I'm running nginx 1.5.1 and have it serving up static content and pushing all non-existent requests to the apache2 proxy backend for serving up. I don't want to limit any requests to static content but do want to lim

Re: Handler invokation after upstream server being picked

2013-11-12 Thread Maxim Dounin
Hello! On Tue, Nov 12, 2013 at 07:55:28PM +0100, Jan Algermissen wrote: > > Hello! > > > > On Tue, Nov 12, 2013 at 03:28:48PM +0100, Jan Algermissen wrote: > > > > > Maxim, > > > > > > a while ago you replied to my question below. > > > > > > Since yesterday I am trying to get hold of the proxy

Re: SSL Handshake problems, nginx reverse web proxy.

2013-11-12 Thread Maxim Dounin
Hello! On Tue, Nov 12, 2013 at 12:22:24PM -0500, Nathan wrote: > On 11/12/2013 12:14 PM, Maxim Dounin wrote: > > > As of nginx 1.5.6+, there is the proxy_ssl_protocols directive > > exacly for this kind of problems. Restricting proxy_ssl_ciphers to > > a smaller set may help too (again, in 1.5

Re: Handler invokation after upstream server being picked

2013-11-12 Thread Jan Algermissen
> Hello! > > On Tue, Nov 12, 2013 at 03:28:48PM +0100, Jan Algermissen wrote: > > > Maxim, > > > > a while ago you replied to my question below. > > > > Since yesterday I am trying to get hold of the proxy_host > > variable set by the proxy module but without success, maybe you > > can help a lit

Re: SSL Handshake problems, nginx reverse web proxy.

2013-11-12 Thread Nathan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/12/2013 12:14 PM, Maxim Dounin wrote: > Hello! Hi! > > As of nginx 1.5.6+, there is the proxy_ssl_protocols directive > exacly for this kind of problems. Restricting proxy_ssl_ciphers to > a smaller set may help too (again, in 1.5.6+). >

Re: SSL Handshake problems, nginx reverse web proxy.

2013-11-12 Thread Maxim Dounin
Hello! On Tue, Nov 12, 2013 at 12:07:08PM -0500, Nathan wrote: > I am working on setting up an http reverse proxy in front of a > pre-packaged jetty server. The jetty server is a pre-configured > application, and not very flexible. > > Here's the quick and dirty. I have nginx configured to lis

SSL Handshake problems, nginx reverse web proxy.

2013-11-12 Thread Nathan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am working on setting up an http reverse proxy in front of a pre-packaged jetty server. The jetty server is a pre-configured application, and not very flexible. Here's the quick and dirty. I have nginx configured to listen on 443, using its own SS

Re: Handler invokation after upstream server being picked

2013-11-12 Thread Maxim Dounin
Hello! On Tue, Nov 12, 2013 at 03:28:48PM +0100, Jan Algermissen wrote: > Maxim, > > a while ago you replied to my question below. > > Since yesterday I am trying to get hold of the proxy_host > variable set by the proxy module but without success, maybe you > can help a little with the code

Re: Handler invokation after upstream server being picked

2013-11-12 Thread Jan Algermissen
Maxim, a while ago you replied to my question below. Since yesterday I am trying to get hold of the proxy_host variable set by the proxy module but without success, maybe you can help a little with the code. >From the source I understood that the proxy module sets the proxy_host var >during N