K
K
Kirill Zhilyaev2017-06-10 11:55:52
Nginx
Kirill Zhilyaev, 2017-06-10 11:55:52

Why is nginx not logging?

location /method {
    rewrite ^/method/(.*) /proxy.php?qbv=$1 last;
    access_log /var/log/nginx/proxy.log;
}

rewirte works, but the log is not written. How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2017-06-10
@POS_troi

touch /var/log/nginx/proxy.log
chown nginx:nginx /var/log/nginx/proxy.log

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question