3 messages in ru.sysoev.nginxconfigless vhost
FromSent OnAttachments
Marcos NevesJun 26, 2008 12:26 am 
mikeJun 26, 2008 1:19 am 
Igor SysoevJun 26, 2008 1:39 pm.Other
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:configless vhostActions...
From:Marcos Neves (marc@public.gmane.org)
Date:Jun 26, 2008 12:26:31 am
List:ru.sysoev.nginx

I have virtualhost with configuration less feature that works like a charm!

server { server_name _; set $host_without_www $host; if ($host ~* www\.(.*)) { set $host_without_www $1; } root /var/www/$host_without_www/; access_log logs/$host_without_www.log;

unfortunately, access_log don´t parses variables, so a file named $host_without_www.log is created instead.

There´s any way to keep access logs separated by host, without need to configure one by one by hand?