Variables in access_log

Brent Bloxam brentb at beanfield.com
Fri Jul 3 18:43:36 MSD 2009


miradev wrote:
> Fails on test:
> 
> nginx -t
> the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
> : open() "/var/log/nginx/wordpress/admin/$client/generic-error.log" failed (2: No such file or directory)
> configuration file /usr/local/nginx/conf/nginx.conf test failed
> 
> 
> Have I misunderstood?
> 
>

Yes, you assumed error_log was the same as access_log. They are not. 
access_log is part of the Log module while error_log is part of the main 
module. error_log (at least in 0.7.59) does not support variables in the 
path.





More information about the nginx mailing list