Re: tmp directory filling up

2014-06-11 Thread Tatonka
Hi Maxim, thanks for your answer. I tried redirecting passengers tmp dir as well using the tmp_dir directive as well as using the env variables. For the "regular" passenger tmp files, this seems to work fine (they appear in the new location). My main problem is that I can't even see the file

Re: Accessing the location configuration of module 2 during post configuration processing of module 1 for a particular server

2014-06-11 Thread Rv Rv
Hello Maxim Thanks for your response. Here is a related query. Say in module 1 I have a  typedef struct  { int flag; ngx_str somestring; } module1; flag gets initialized with the following code      { ngx_string("module1_directive"),       NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,       ngx_conf_

Re: Life of objects allocated using the request pool?

2014-06-11 Thread Maxim Dounin
Hello! On Wed, Jun 11, 2014 at 12:26:03PM +0530, Adarsh Pugalia wrote: > What is the life of objects allocated using the request pool? If I allocate > memory from the r->pool in a request handler, what would be the life of the > object? Will the objects be freed if the request is over of will it

Re: 400 bad requests now returning http headers? ( crossdomain.xml )

2014-06-11 Thread Maxim Dounin
Hello! On Tue, Jun 10, 2014 at 04:07:28PM -0400, Thaxll wrote: > Hi Maxim, > > Thank you for the quick reply, I guess there is no workaround for that > problem? It isn't possible to remove headers or specify a dummy protocol for > Nginx? I don't think there is anything that can be done at the

Re: tmp directory filling up

2014-06-11 Thread Maxim Dounin
Hello! On Wed, Jun 11, 2014 at 10:58:47AM -0400, Tatonka wrote: > Hi, > > I have a rails application that is hosted through nginx and passenger. In > this application I want provide very large files for the users to download > (>2GB) using send_file .. which is working just fine on the developm

Re: location uri wildcard

2014-06-11 Thread Jonathan Matthews
On 10 June 2014 17:31, grd2345 wrote: > http://www.mysite.com/ClassScheduler.aspx [snip] > I basically need a wild card to detect ClassScheduler.aspx from the above > old urls This assumption looks wrong. Check out how location stanzas work: http://nginx.org/r/location Hint: locations in their si

Re: proxy_pass to different upstreams based on a cookie in the http request header

2014-06-11 Thread Francis Daly
On Wed, Jun 11, 2014 at 12:46:41AM -0700, Kunal Pariani wrote: Hi there, > Am wondering if there is a way to proxy (i.e proxy_pass inside location > directive) to different set of upstreams based on whether a particular > cookie is present or not in a http request header. You can use a map (http

Re: Rewrite rules from Apache again

2014-06-11 Thread Francis Daly
On Wed, Jun 11, 2014 at 06:20:50PM +0200, Luciano Mannucci wrote: > On Tue, 10 Jun 2014 22:43:05 +0100 > Francis Daly wrote: Hi there, > > The rest of the config? > :) > Well, I've posted it in my previous request for help. Beeing > longish I tried to spare some bandwith... :) No worries. It c

Re: Rewrite rules from Apache again

2014-06-11 Thread Luciano Mannucci
On Tue, 10 Jun 2014 22:43:05 +0100 Francis Daly wrote: > The rest of the config? :) Well, I've posted it in my previous request for help. Beeing longish I tried to spare some bandwith... :) > > == > server { > rewrite ^/(.*)_k(.*).htm$ /pagina.php?k=$2 ; > rewrite ^/privacy.php$ /pagina.php

Re: location uri wildcard

2014-06-11 Thread grd2345
I actually was looking around on google for the solution, but I lazied out and came here, but I ended up finding the solution for this, buy getting myself familiar with regex. I used the following command to do this to maybe help someone else needing this. location ~* "\bClassScheduler.aspx\b" {

tmp directory filling up

2014-06-11 Thread Tatonka
Hi, I have a rails application that is hosted through nginx and passenger. In this application I want provide very large files for the users to download (>2GB) using send_file .. which is working just fine on the development and staging system. On the production system however the system tmp dire

Re: location uri wildcard

2014-06-11 Thread B.R.
Keep in mind this ML (and other places such as StackOverfflow or whatever fora are still open to help you if you are struggling on anything. People are usually glad to help others who demonstrated efforts in thinking about it and who provided details about their approach of the problem. That is, b

proxy_pass to different upstreams based on a cookie in the http request header

2014-06-11 Thread Kunal Pariani
Hello, Am wondering if there is a way to proxy (i.e proxy_pass inside location directive) to different set of upstreams based on whether a particular cookie is present or not in a http request header. Thanks -Kunal ___ nginx mailing list nginx@nginx.org