Dynamic log file location
Igor Clark
igor at pokelondon.com
Thu Aug 23 14:58:54 MSD 2007
Obviously that should be "/path/to/error.log" in the error_log
directive!
On 23 Aug 2007, at 11:40, Igor Clark wrote:
> Hi there,
>
> Is it possible to do something like:
>
> server_name *;
>
> access_log /var/www/dynamic/vhost1/$http_host/logs/access.log main;
> error_log /var/www/dynamic/vhost1/$http_host/logs/access.log
> notice;
>
> I just get
>
> 2007/08/23 11:37:35 [emerg] 19103#0: open() "/var/www/dynamic/
> vhost1/$http_host/logs/access.log" failed (2: No such file or
> directory)
>
> This machine only has 0.5.23, but that has served purposes
> perfectly well so far - would an update make any difference? Or is
> there an alternative way to do this?
>
> Thanks very much,
>
> Igor
>
> --
> Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20
> 7749 5355 // www.pokelondon.com
>
> We've gone sub-zero with the TopGear Cool Wall: http://
> www.topgear.com/coolwall/
>
>
--
Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749
5355 // www.pokelondon.com
We've gone sub-zero with the TopGear Cool Wall: http://
www.topgear.com/coolwall/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070823/7c677ae0/attachment.html>
More information about the nginx
mailing list