Hi,
When I look at /var/log/nginx/ I can see the default log files as well as a few that are related to my domain name:
access.log (default) error.log (default) mydomain.access.log mydomain.error.log
There also seem to be symbolic links in /var/www/domainname.com/logs/ :
access.log -> /var/log/nginx/domainname.com.access.log error.log -> /var/log/nginx/domainname.com.error.log
This has my a little confused. Which log file is the one created by NGINX and which is the final log file for the domain name ? What’s the difference here ? I need to know in order to configure fail2ban and logrotate correctly.
Thanks, Lex