Vikas Reddy
Vikas Reddy

Reputation: 45

How to set separate log file to log 400 errors in nginx 1.4.7

I know , I can't use if condition in access_log in ngninx 1.4.7. Is there other way?

   listen       80 default_server;
    access_log  /log/nginx/access.log ;
  # access_log off;

........

Upvotes: 1

Views: 66

Answers (1)

Alexander Altshuler
Alexander Altshuler

Reputation: 3064

The best solution is not to use antique version of nginx and upgrade.

Upvotes: 1

Related Questions