Using variables in access_log, error_log
Posted by smoneyan on March 20, 2013 at 5:11pm
Hi,
I am using nginx 1.1.19. I am using the following configuration for my site.
I don't want to repeat the site name in access_log, error_log, php_log like this
access_log /var/log/nginx/example.com.access.log;
error_log /var/log/nginx/example.com.error.log debug;
fastcgi_param PHP_VALUE "error_log=/var/log/php/example.com.error.log";I am trying this config. But i end up having file names like in my log folder.
$host.error.log.
I know i'm doing something wrong. Could any one of u help me ?
server{
listen 80;