Welcome! Log In Create A New Profile

Advanced

Dynamic error_log location using regex captures

Anonymous User
November 06, 2012 12:40AM
Why can't I use a dynamic error_log location like I do with access_log? Example config:

server_name ~^(?<username>.+)\.my-domain\.com$;

root /srv/www/accounts/$username/app;

access_log /var/log/nginx/accounts/$username/access.log;
error_log /var/log/nginx/accounts/$username/error.log;

This does not work, since for some reason nginx chokes out on the dynamic error_log location. Feature request?
SubjectAuthorPosted

Dynamic error_log location using regex captures

Anonymous UserNovember 06, 2012 12:40AM

Re: Dynamic error_log location using regex captures

VBartNovember 06, 2012 07:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready