We can disable access logging in two ways one is Disabling All Access Logging and another one is Disabling access logging at particular request

Option 1:

We can set disabling all access logs although this is not recommended,

Find NGINX conf file

# whereis nginx

nginx: /etc/nginx /usr/local/sbin/nginx /usr/local/nginx

most probably configure file is located in /etc/nginx/nginx.conf

Open your nginx.conf file and add a line,
 
# vim /etc/nginx/nginx.conf

access_log off;

Save a file and restart your nginx server,
 
# /etc/init.d/nginx restart

Option 2:

If would you like to disabling acess logging of particular requests, for example

location = /mypage {
   #.....
   access_log off;
}

check your nginx whether is working?
 
# ps aux | grep nginx

nobody    2512  0.0  0.3 123231 23454 ?        S    17:46   0:09 nginx: worker process                         
nobody    2541  0.0  0.3 123231 91342 ?        S    17:46   0:07 nginx: worker process                         
nobody    1201  0.0  0.3 111428 22345 ?        S    17:46   0:00 nginx: cache manager process                  
root     25452  0.0  0.0 111428  3456 ?        Ss   Oct19   0:01 nginx: master process /usr/local/sbin/nginx -c /etc/nginx/nginx.conf