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: 267
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready