We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Location to edit nginx.conf so I can customize log files
Location to edit nginx.conf so I can customize log files
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
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Location to edit nginx.conf so I can customize log files
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.
Dont forget to Rebuild Web after this.
Re: Location to edit nginx.conf so I can customize log files
Thank you for your assistance. It is most appreciated :)
I will give this a try :)
I will give this a try :)