Page 1 of 1

Location to edit nginx.conf so I can customize log files

Posted: Sat Jun 02, 2018 11:00 am
by hammy
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

Re: Location to edit nginx.conf so I can customize log files

Posted: Sat Jun 02, 2018 2:23 pm
by grayfolk
You need to edit templates in /usr/local/vesta/data/templates/web/httpd for Apache and templates in /usr/local/vesta/data/templates/web/nginx for Nginx.
Dont forget to Rebuild Web after this.

Re: Location to edit nginx.conf so I can customize log files

Posted: Sat Jun 02, 2018 4:07 pm
by hammy
Thank you for your assistance. It is most appreciated :)

I will give this a try :)