nginx start failing, says error.log doesn't exist
- by Blankman
I structured my sites like:
/home/www/domain.com/public,private, log, backup
In the log folder, I created a blank error.log and access.log.
My nginx file in sites-available for the domain looks like:
server
{
access_log /home/www/domain1.com/log/access.log;
error_log /home/www/domain1.com/log/error.log;
}
Trying to start nginx it says:
starting nginx: the config file /etc/nginx/nginx/conf syntax is ok
[emrg] open() ".../access.log" failed (2: no such file or directory)
Is this a permission issue?