nginx config access_log error_log

Events happening in the community are now at Drupal community events on www.drupal.org.
smoneyan's picture

Using variables in access_log, error_log

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;

Read more
Subscribe with RSS Syndicate content