We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The vhost log directory is owned by root (and only root can write there):
# From Nginxpack::Vhost::Basic file { "/var/log/nginx/${name}/": ensure => directory, mode => '0770', owner => 'root', group => 'root', }
However the log file should be writeable by www-data:
www-data
the user whose credentials are used by worker processes should have permissions to create files in a directory with such logs;
The result is a bunch of errors such as:
2017/09/06 06:32:23 [emerg] 6964#0: open() "/var/log/nginx/example/access.log" failed (13: Permission denied)
See issue #7 however.
Maybe we need in the logrotate snippet:
su www-data adm
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The vhost log directory is owned by root (and only root can write there):
However the log file should be writeable by
www-data
:The result is a bunch of errors such as:
See issue #7 however.
Maybe we need in the logrotate snippet:
The text was updated successfully, but these errors were encountered: