Now in my access log file too many records, - because images and pages in same file. Is it possible move all images to one file and only php pages to second file? (filter images and non images files)
server {
root /home/nginx/site;
index index.html index.htm index.php;
access_log /home/nginx/site/_log/site_access.log;
error_log /home/nginx/site/_log/site_error.log;
listen 80;
keepalive_timeout 70;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.html
try_files $uri $uri/ /index.html;
}
include /etc/nginx/server.conf.d/php.conf;
}