Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

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

General questions about VestaCP
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
hammy
Posts: 23
Joined: Tue May 06, 2014 2:46 pm

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

Post by hammy » 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
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Location to edit nginx.conf so I can customize log files
  • Quote

Post by grayfolk » Sat Jun 02, 2018 2:23 pm

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.
Top

hammy
Posts: 23
Joined: Tue May 06, 2014 2:46 pm

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

Post by hammy » Sat Jun 02, 2018 4:07 pm

Thank you for your assistance. It is most appreciated :)

I will give this a try :)
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password