[ANN] ngx_openresty devel version 1.2.7.1 released

2013-02-22 Thread agentzh
Hello! I am happy to announce that the new development version of ngx_openresty, 1.2.7.1, is now released: http://openresty.org/#Download Below is the complete change log for this release, as compared to the last (stable) release, 1.2.6.6: * upgraded the Nginx core to 1.2.7. * se

Re: Reverse proxy and rewrite

2013-02-22 Thread Maxim Dounin
Hello! On Fri, Feb 22, 2013 at 04:16:03PM -0500, jims wrote: > nginx 1.2.7 on CentOS 6.3. Reverse-proxy with two upstream servers. One > server should be default, the other should only be used when called from a > link on a specific web server. > > I have the reverse proxy working fine for the

Re: How to remove the "IF" in this fcgi config

2013-02-22 Thread Valentin V. Bartenev
On Saturday 23 February 2013 00:11:26 Francis Daly wrote: > On Thu, Feb 21, 2013 at 07:08:56PM +, Ed W wrote: > > On 21/02/2013 17:54, Igor Sysoev wrote: > Hi there, > > > >location ~ ^(?.+\.php)(?/|$) { > > > > Can I ask you to confirm the correction of a typo in your answer.

Reverse proxy and rewrite

2013-02-22 Thread jims
nginx 1.2.7 on CentOS 6.3. Reverse-proxy with two upstream servers. One server should be default, the other should only be used when called from a link on a specific web server. I have the reverse proxy working fine for the default upstream, but not quite right on the second, site-specific upstr

Serve different static page depending of the server load

2013-02-22 Thread Frédéric Bastien
Hi, We are planning releasing a new web site shortly and we try to get slash-dotted. Our website is hosted with nginx, but I currently set the images of the main page on amazon S3 as it won't be able to serve them if we get slash-dotted as planned. To lower our cost, is there a way to tell nginx

Re: How to remove the "IF" in this fcgi config

2013-02-22 Thread Francis Daly
On Thu, Feb 21, 2013 at 07:08:56PM +, Ed W wrote: > On 21/02/2013 17:54, Igor Sysoev wrote: Hi there, > >location ~ ^(?.+\.php)(?/|$) { > Can I ask you to confirm the correction of a typo in your answer. Do I > want this: > > (?.*) { You probably want

Re: Fwd: nginx performance on Amazon EC2

2013-02-22 Thread Rakan Alhneiti
Since my requests according to my profiling take around 0.065 seconds to execute. I am really unsure of what happens after the response leaves the django side and uwsgi starts handling it with nginx. Is there a way to do some profiling at uwsgi or nginx level? Best Regards, *Rakan AlHneiti* Find

Re: Issue with auto subdomain nd trailing slash

2013-02-22 Thread shumisha
Hi Francis, Thanks a lot for your message, I think I got things under control thanks to you! You're right, there's indeed a 301 thrown by nginx from http://subdomain..net/admin to http://.net/admin/ (as shown by the curl output). I had tried server_name_in_redirect to off before, to no a

Re: Default error_page for multiple vhosts

2013-02-22 Thread Francis Daly
On Fri, Feb 22, 2013 at 12:42:17PM +0100, Alexander Nestorov wrote: Hi there, > What I really ment to ask/say is: it will be really usefull to set > some default rules that could be overriden later > on each server{}. That is already the case, within the limits of the nginx configuration inherit

Re: Issue with auto subdomain nd trailing slash

2013-02-22 Thread Francis Daly
On Fri, Feb 22, 2013 at 06:27:27AM -0500, shumisha wrote: > I am running into a weird issue, after having configured nginx 0.7.67 (comes > with debian 6) for serving PHP pages, with automatic subdomains. > It works fine for the most part, but when requesting a url that correspond > to an actual fo

Re: Default error_page for multiple vhosts

2013-02-22 Thread Alexander Nestorov
Thank you for the example config Gregory! :) I'll try it (not sure if I'll be able to do it until monday) and I'll say if everything works as expected. Regards :) -- alexandernst ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman

Re: Default error_page for multiple vhosts

2013-02-22 Thread Gregory Pakosz
On 2/22/13 12:42 PM, Alexander Nestorov wrote: Example: It would be really usefull (in my particular case) to set error_page to some absolute path so that all server{} get error_page automatically. Then, if my domain 42 needs a custom error_page I could just add the error_page to that server{} a

Re: Default error_page for multiple vhosts

2013-02-22 Thread Alexander Nestorov
Thank you both for the replies :) I already thought about soft links and some hack with grep+sed, but that's not I really wanted to ask. What I really ment to ask/say is: it will be really usefull to set some default rules that could be overriden later on each server{}. Example: It would be rea

Issue with auto subdomain nd trailing slash

2013-02-22 Thread shumisha
Hi All, I am running into a weird issue, after having configured nginx 0.7.67 (comes with debian 6) for serving PHP pages, with automatic subdomains. It works fine for the most part, but when requesting a url that correspond to an actual folder, but without a trailing slash, the subdomain recognit

Re: Updated hotlink protection with new Google Image Search

2013-02-22 Thread Namson Mon
Hi Ian, we've just published an extensive blog post about how to achieve this kind of hotlinking protection against Google Images: http://pixabay.com/en/blog/posts/hotlinking-protection-and-watermarking-for-google-32/ -- Posted via http://www.ruby-forum.com/. __

Re: Is it possible that nginx will not buffer the client body?

2013-02-22 Thread Pasi Kärkkäinen
On Fri, Feb 22, 2013 at 11:25:24AM +0200, Pasi Kärkkäinen wrote: > On Fri, Feb 22, 2013 at 10:06:11AM +0800, Weibin Yao wrote: > >Use the patch I attached in this mail thread instead, don't use the pull > >request patch which is for tengine. > >Thanks. > > > > Oh sorry I missed that a

Re: Default error_page for multiple vhosts

2013-02-22 Thread Mark Alan
On Fri, 22 Feb 2013 09:32:33 +0100, Alexander Nestorov wrote: > I'm trying to set a default error_page for my entire nginx server (as > http { > error_page 404 /var/www/default/404.html; > server { > root /var/www/mydomain.com/; > } > } > Is there any other way I could achieve

Re: Default error_page for multiple vhosts

2013-02-22 Thread Francis Daly
On Fri, Feb 22, 2013 at 09:32:33AM +0100, Alexander Nestorov wrote: Hi there, > I'm trying to set a default error_page for my entire nginx server (as > in for all vhosts) Based on the way that nginx configuration inheritance works, that is unlikely to be usefully possible at http{} level when yo

Re: Is it possible that nginx will not buffer the client body?

2013-02-22 Thread Pasi Kärkkäinen
On Fri, Feb 22, 2013 at 10:06:11AM +0800, Weibin Yao wrote: >Use the patch I attached in this mail thread instead, don't use the pull >request patch which is for tengine. >Thanks. > Oh sorry I missed that attachment. It seems to apply and build OK. I'll start testing it. Thanks! --

Re: Proxying non-ssl SMTP/POP to ssl SMTP/POP

2013-02-22 Thread Maxim Dounin
Hello! On Wed, Feb 20, 2013 at 12:02:04PM -0500, huynq wrote: > Hi everyone, > I'm now using nginx in setting up a proxying mail system in my company. The > model is as below: > > Mail client <=> Nginx proxy <===> Mail server > > The stream between mail client and nginx is non-s