Re: Using the access_log if directive in 1.6.x

2014-12-11 Thread Valentin V. Bartenev
On Thursday 11 December 2014 13:25:45 sudharshanr wrote: [..] > > Hello Valentin, > > Thank you for your reply. Just one question. It is not just the 404 errors > that I want to redirect. I want to redirect all 4xx and 5xx errors. I have > updated my config file as below, but it doesn't seem to w

Re: Using the access_log if directive in 1.6.x

2014-12-11 Thread sudharshanr
Valentin V. Bartenev Wrote: --- > On Thursday 11 December 2014 00:33:24 sudharshanr wrote: > > Hi, > > > > I'm using nginx 1.6.2 on Amazon ec2 linux server. The problem I'm > having is > > that all my 404 errors are going to my access.log. I want

Re: Using the access_log if directive in 1.6.x

2014-12-11 Thread Valentin V. Bartenev
On Thursday 11 December 2014 00:33:24 sudharshanr wrote: > Hi, > > I'm using nginx 1.6.2 on Amazon ec2 linux server. The problem I'm having is > that all my 404 errors are going to my access.log. I want them to be > redirected to error.log instead. > > I saw on other forums that with nginx 1.7+,

Using the access_log if directive in 1.6.x

2014-12-10 Thread sudharshanr
Hi, I'm using nginx 1.6.2 on Amazon ec2 linux server. The problem I'm having is that all my 404 errors are going to my access.log. I want them to be redirected to error.log instead. I saw on other forums that with nginx 1.7+, I can use the if directive of access_log to do something like: map