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?
Subject Author Posted

Dynamic error_log location using regex captures

Anonymous User November 06, 2012 12:40AM

Re: Dynamic error_log location using regex captures

VBart November 06, 2012 07:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 5 on July 11, 2016
Record Number of Guests: 271 on July 19, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready