[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nginx
Subject:    Re: Dynamic log file location
From:       Igor Clark <igor () pokelondon ! com>
Date:       2007-08-28 9:02:28
Message-ID: E651B261-D1E1-4349-AF48-740B92E1AC1D () pokelondon ! com
[Download RAW message or body]

On 23 Aug 2007, at 21:41, Igor Sysoev wrote:

> On Thu, Aug 23, 2007 at 11:40:38AM +0100, Igor Clark wrote:
>
>> Is it possible to do something like:
>>
>> 	server_name	*;
>>
>> 	access_log  /var/www/dynamic/vhost1/$http_host/logs/access.log   
>> main;
>> 	error_log   /var/www/dynamic/vhost1/$http_host/logs/access.log
>> 	notice;
>>
>> I just get
>>
>> 	2007/08/23 11:37:35 [emerg] 19103#0: open()
>> 	"/var/www/dynamic/vhost1/ $http_host/logs/access.log" failed (2:  
>> No such
>> file or directory)
>>
>> This machine only has 0.5.23, but that has served purposes perfectly
>> well so far - would an update make any difference? Or is there an
>> alternative way to do this?
>
> No.

Ah ... thanks ;-)


--
Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749  
5355 // www.pokelondon.com

We've gone sub-zero with the TopGear Cool Wall: http:// 
www.topgear.com/coolwall/



[Attachment #3 (unknown)]

<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: \
after-white-space; "><DIV><DIV><DIV>On 23 Aug 2007, at 21:41, Igor Sysoev \
wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On \
Thu, Aug 23, 2007 at 11:40:38AM +0100, Igor Clark wrote:</DIV><DIV style="margin-top: \
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; \
"><BR></DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; ">Is it possible to do something \
like:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN \
class="Apple-tab-span" style="white-space:pre">	</SPAN>server_name<SPAN \
class="Apple-tab-span" style="white-space:pre">	</SPAN>*;</DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" \
style="white-space:pre">	</SPAN>access_log<SPAN class="Apple-converted-space">  \
</SPAN>/var/www/dynamic/vhost1/$http_host/logs/access.log<SPAN \
class="Apple-converted-space">  </SPAN>main;</DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN \
class="Apple-tab-span" style="white-space:pre">	</SPAN>error_log <SPAN \
class="Apple-converted-space">  \
</SPAN>/var/www/dynamic/vhost1/$http_host/logs/access.log <SPAN \
class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN \
class="Apple-tab-span" style="white-space:pre">	</SPAN>notice;</DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; ">I just get</DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; \
"><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; "><SPAN class="Apple-tab-span" \
style="white-space:pre">	</SPAN>2007/08/23 11:37:35 [emerg] 19103#0: open()<SPAN \
class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN \
class="Apple-tab-span" style="white-space:pre">	</SPAN>"/var/www/dynamic/vhost1/ \
$http_host/logs/access.log" failed (2: No such<SPAN class="Apple-converted-space"> \
</SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">file or directory)</DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; \
"><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">This machine only has 0.5.23, but that has served purposes \
perfectly <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: \
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">well so far - would \
an update make any difference? Or is there an <SPAN class="Apple-converted-space"> \
</SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">alternative way to do this?</DIV> </BLOCKQUOTE><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; ">No.</DIV> </BLOCKQUOTE></DIV><DIV><BR \
class="khtml-block-placeholder"></DIV><DIV>Ah ... thanks \
;-)<DIV><BR></DIV></DIV><BR><DIV> <SPAN class="Apple-style-span" \
style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); \
font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; \
-khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: \
auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: \
0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; \
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: \
12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: \
normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: \
none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: \
2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN \
class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; \
color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: \
normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; \
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; \
widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" \
style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); \
font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; \
-khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: \
auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: \
0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; \
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: \
12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: \
normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: \
none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: \
2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN \
class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; \
color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: \
normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; \
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; \
widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" \
style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); \
font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; \
-khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: \
auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: \
0px; "><DIV>--</DIV><DIV>Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 \
(0)20 7749 5355 // <A \
href="http://www.pokelondon.com">www.pokelondon.com</A></DIV></SPAN></SPAN></SPAN><DIV><BR \
class="khtml-block-placeholder"></DIV></SPAN><DIV>We've gone sub-zero with the \
TopGear Cool Wall: <A \
href="http://www.topgear.com/coolwall/">http://www.topgear.com/coolwall/</A></DIV><BR \
class="Apple-interchange-newline"></SPAN></SPAN></SPAN> \
</DIV><BR></DIV></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic