Looking to returning a 302 Redirect if a file is above a certain size...

2013-05-20 Thread barntzen
Hey there, I was looking for some guidance for a project I'm working on. We're looking into CDNs here, and we are specifically looking for a decent origin pull service that also supports denying by referrer to prevent hotlinking. However, as it turns out almost all origin pull services *except* a

Re: Can't log/print in header_filter_by_lua

2013-05-20 Thread Ramesh Muraleedharan
OK. I was able to resolve it by doing a clean install of nginx. Dunno what the underlying issue was, but my hunch is I was logging to an a different location and the logs I was looking at were the default logs from nginx. Thanks anyway! On Mon, May 20, 2013 at 2:47 PM, Ramesh Muraleedharan wrote

Re: Can't log/print in header_filter_by_lua

2013-05-20 Thread Ramesh Muraleedharan
I've tried print() as well, and neither that nor ngx.log() have worked as yet. On Mon, May 20, 2013 at 2:42 PM, Jader H. Silva wrote: > *ngx.print()* is only valid for r*ewrite_by_lua*, access_by_lua* and > content_by_lua*.* Maybe your looking for* print() > > ngx.log* should work though*. > *

Re: Can't log/print in header_filter_by_lua

2013-05-20 Thread Jader H. Silva
*ngx.print()* is only valid for r*ewrite_by_lua*, access_by_lua* and content_by_lua*.* Maybe your looking for* print() ngx.log* should work though*. * * * 2013/5/20 Ramesh Muraleedharan > Hi all, > > I've been experimenting with rewriting 'Set Cookie' headers in a > nginx-reverse-proxy effort

Can't log/print in header_filter_by_lua

2013-05-20 Thread Ramesh Muraleedharan
Hi all, I've been experimenting with rewriting 'Set Cookie' headers in a nginx-reverse-proxy effort. The Set-Cookie rewrite doesn't seem to work yet, and more importantly, my log/print statements don't print to error_log as directed, making it very difficult to debug. http { server { acces

Re: Fancyindex module hangs connection

2013-05-20 Thread peku33
Thanks! I found solution myself: http://serverfault.com/questions/507375/nginx-not-finishing-fancyindex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239168,239355#msg-239355 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/m

Re: valid_referers dynamic hostname

2013-05-20 Thread Maxim Dounin
Hello! On Mon, May 20, 2013 at 02:14:02PM -0400, vlad...@binkmail.com wrote: > Hello, > > Thank you for your example Maxim. This is what I've wrote in my config: > > set $temp "$host:$http_referer"; > > valid_referers none blocked server_names ~\.google\. ~\.yahoo\. ~\.bing\. > ~\.ask\. ~\.liv

Re: valid_referers dynamic hostname

2013-05-20 Thread B.R.
I suggest you take a look at the order in which 'if' statements are evaluated. Consider reading the 'if' directive documentation . --- *B. R.* On Mon, May 20, 2013 at 2:14 PM, vlad...@binkmail.com wrote: > Hello, > > Thank you for yo

Re: valid_referers dynamic hostname

2013-05-20 Thread vlad...@binkmail.com
Hello, Thank you for your example Maxim. This is what I've wrote in my config: set $temp "$host:$http_referer"; valid_referers none blocked server_names ~\.google\. ~\.yahoo\. ~\.bing\. ~\.ask\. ~\.live\. ~\.googleusercontent.com\. ; if ($invalid_referer){ set $test A ; } if ($temp ~* "^(.

Re: Nginx returns HTTP 200 with Content-Length: 0

2013-05-20 Thread suttya
it's GET request? 2013/5/20 apeman > I never use SPDY. The problem still exists. I don't know how to fix it. > > Posted at Nginx Forum: > http://forum.nginx.org/read.php?2,205826,239334#msg-239334 > > ___ > nginx mailing list > nginx@nginx.org > http:

Re: valid_referers dynamic hostname

2013-05-20 Thread Maxim Dounin
Hello! On Sat, May 18, 2013 at 01:31:50PM -0400, vlad...@binkmail.com wrote: > Sorry for posting here - don't know for sure if it's the right place. > > I have an issue: > > 1) I use nginx as reverse proxy, but I don't always know the domain name for > which I'm serving, so my setup looks like

Re: valid_referers dynamic hostname

2013-05-20 Thread vlad...@binkmail.com
Also, Isn't this a bug since I have added server_names to valid_referers? And since server_names knows the domain, it should work... Any ideas? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239318,239343#msg-239343 ___ nginx mailing list

Re: The truth about gzip_buffers?

2013-05-20 Thread Maxim Dounin
Hello! On Sat, May 18, 2013 at 09:02:14AM -0400, spdyg wrote: > Reading the docs on nginx.org and searching around, it seems there's no > consensus on how we should configure gzip_buffers. Just keep the default? > Some guides say that the total buffer needs to be greater than any file you > wan

Nginx balancing mechanism

2013-05-20 Thread Sabik2006
Hello What balancing mechanism is used in nginx: connections are balanced, or messages in connections are balanced? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239340,239340#msg-239340 ___ nginx mailing list nginx@nginx.org http://mailman

Re: nginx cache opendir failed

2013-05-20 Thread Ronald Van Assche
the Web server is run by "www" , and owns the parent directory of the cache. Le 20 mai 2013 à 11:19, Stev e Holdoway a écrit : > So, you need to ensure all files can only be deleted by the owner, all files > created in the directory are in the same group as the directory and, to the > best of

Re: nginx cache opendir failed

2013-05-20 Thread Stev e Holdoway
So, you need to ensure all files can only be deleted by the owner, all files created in the directory are in the same group as the directory and, to the best of my knowledge, setuid is meaningless. Ah, I see that it's a freebsd machine... setgid is the default functionality on that OS. This

Re: nginx cache opendir failed

2013-05-20 Thread Ronald Van Assche
SOLVED: Just chmod ( 4 seven) /var/cache/www , the parent directory of the nginx cache and voilà, it works. Le 19 mai 2013 à 17:51, Ronald Van Assche a écrit : > Hi > > On a Freebsd 9.1 machine > Nginx 1.4.1 > > opendir() "/var/cache/www/nginx2" failed (13: Permission denied) > > micr

Re: Unbuffered requests in a reverse proxy?

2013-05-20 Thread Pasi Kärkkäinen
On Sun, May 19, 2013 at 09:50:02PM +0200, Peter Hultqvist wrote: > Hi > > Can nginx be configured to pass through a reverse proxy request before > it has been transmitted completely? > > My set-up is a public facing nginx server accepting file uploads passed > to another server via a reverse prox

Re: Nginx returns HTTP 200 with Content-Length: 0

2013-05-20 Thread apeman
I never use SPDY. The problem still exists. I don't know how to fix it. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,205826,239334#msg-239334 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx