V
V
Vladislav2015-01-16 17:20:54
Nginx
Vladislav, 2015-01-16 17:20:54

Why aren't all calls to the server recorded in NGINX's acces log?

Hello, the problem is this:
There is an NGINX web server, there is a website on it, every time you visit the site, NGINX's acces log records information about accessing the site (nothing unusual, right?). But, for some reason, information about all requests is not recorded in this log, for example, I go to the site and then try to find my ip in the logs and it is not there, they did this operation from other IPs and 50 to 50, then it is not recorded. To make sure that something is wrong, I make a clean log file and compare the number of visits in Google Analytics and the number of entries in this file per day. If you believe the logs, then the site is visited very poorly =) But Google Analytics shows that everything is cool and even there is growth. What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav, 2015-01-16
@MrBikus

That's it, I figured it out myself, the problem was in this rule:
location ~ \.php$ {
if ($http_user_agent ~ MSIE ) {
add_header X-UA-Compatible IE=edge,chrome=1;
}
fastcgi_pass backend;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param 'CATEGORY_ID' $category_id;
#access_log off;
}
Namely in access_log off;

N
nikoinlove, 2015-01-16
@nikoinlove

Without the entire config, it seems impossible to guess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question