Bug 996006 - Nginx: Error_log directive does not support variables.
Summary: Nginx: Error_log directive does not support variables.
Keywords:
Status: CLOSED DUPLICATE of bug 990837
Alias: None
Product: Fedora
Classification: Fedora
Component: nginx
Version: 19
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-12 07:41 UTC by brullek
Modified: 2020-11-05 10:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-26 18:22:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description brullek 2013-08-12 07:41:24 UTC
Error_log directive does not support variables.

--------------------
# config for virtual host:

server {
        listen *:80 default_server;
       
        set $sitename dev.local;
       
        server_name dev.local devel.local;
        include /etc/nginx/vhost/vhost_param;
}


---------------------
# /etc/nginx/vhost/vhost_param:
 
   root /var/www/vhost/$sitename/www/;
 
    access_log /var/log/nginx/$sitename.access.log users;
    error_log /var/log/nginx/$sitename.error.log warn;
 
    location / {
 
        location ~ \.php$ {include /etc/nginx/fastcgi_params; }
 
    }
 
 
---------------------------


Nginx does not understand the variable $sitename in error_log
and make files:
1. /var/log/nginx/dev.local.access.log
2. /var/log/nginx/$sitename.error.log


The problem is also evident on Centos 6.4

Comment 1 Jamie Nguyen 2013-08-26 18:22:01 UTC

*** This bug has been marked as a duplicate of bug 990837 ***


Note You need to log in before you can comment on or make changes to this bug.