Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Переменная не работает в строке лога
- To: nginx-ru@xxxxxxxxx
- Subject: Переменная не работает в строке лога
- From: "LinSuN" <nginx-forum@xxxxxxxx>
- Date: Thu, 06 Dec 2012 02:36:54 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tigger.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=UXIu1v6LYpT0KJA2aThmn8RExJNVHmCBiNcyRA3tq8g=; b=LkUi0/70g1PNpL/q/RGyLOzW16xNLHyEJlE7NMC+VHlccsk4FPO/mDWpkDg79TmwO0QzR8g3bVLRcpnV2JnbwDiyy+nV0vfCha8wsRxLy7TdnZyg8EUjDQG4bZCTGn49;
Конфиг:
set $sname example.com;
set $wpath /srv/www/vhosts/;
listen 80;
server_name $sname;
error_log /var/log/nginx/$sname.log error;
в /var/log/nginx создается файл $sname.log вместо example.com.log
пробовал ${sname} тоже самое.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,233624,233624#msg-233624
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|