Location to edit nginx.conf so I can customize log files
Posted: Sat Jun 02, 2018 11:00 am
Hello
I am looking to create custom logs for my websites and I would like to edit the nginx.conf for my individual sites so that they do not log image files or bots/crawlers in the access logs. I would like to know please which location do I edit so I can achieve this?
I am using Centos 7 and latest vesta version. I am also using nginx/apache.
These are the locations as found from your site:-
/etc/nginx/nginx.conf
/etc/nginx/conf.d/*
/home/$user/conf/web/nginx.conf
/home/$user/conf/web/snginx.conf (ssl)
https://vestacp.com/docs/#config-log-lo ... hel-centos
or do I edit the default hosting template?
/usr/local/vesta/data/templates/web/httpd/default.tpl
Thanks in advance for your assistance :)
Hammy
I am looking to create custom logs for my websites and I would like to edit the nginx.conf for my individual sites so that they do not log image files or bots/crawlers in the access logs. I would like to know please which location do I edit so I can achieve this?
I am using Centos 7 and latest vesta version. I am also using nginx/apache.
These are the locations as found from your site:-
/etc/nginx/nginx.conf
/etc/nginx/conf.d/*
/home/$user/conf/web/nginx.conf
/home/$user/conf/web/snginx.conf (ssl)
https://vestacp.com/docs/#config-log-lo ... hel-centos
or do I edit the default hosting template?
/usr/local/vesta/data/templates/web/httpd/default.tpl
Thanks in advance for your assistance :)
Hammy