<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
it's ok.<br>
<br>
I guess it works like that without moving the access_log directive.<br>
<br>
so I have the set $request_id directive in the server section, and
then it is used properly afterwards in the http section.<br>
<br>
thank you!<br>
<br>
<br>
<div class="moz-cite-prefix">On 2/4/2015 11:22 AM, Igal @
getRailo.org wrote:<br>
</div>
<blockquote cite="mid:54D27188.7050006@getrailo.org" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
thank you for your prompt reply.<br>
<br>
yes, it works in the server section, but my access_log is in the
http section, and I want to use it in the access_log<br>
<br>
should I just add <br>
<br>
<strong style="color: rgb(0, 0, 0); font-family: monospace;
font-size: medium; font-style: normal; font-variant: normal;
letter-spacing: normal; line-height: 16px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(242, 242,
242);">access_log</strong><span style="color: rgb(0, 0, 0);
font-family: monospace; font-size: medium; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 16px; orphans: auto; text-align: left;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none; background-color:
rgb(242, 242, 242);"><span class="Apple-converted-space"> </span></span><code
style="color: rgb(0, 0, 0); font-size: medium; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(242, 242,
242);">off</code><span style="color: rgb(0, 0, 0); font-family:
monospace; font-size: medium; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal;
line-height: 16px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
inline !important; float: none; background-color: rgb(242, 242,
242);">;</span><br>
<br>
in the http section and add the access_log to the server section
instead?<br>
<br>
thanks<br>
<br>
<br>
<div class="moz-cite-prefix">On 2/4/2015 11:15 AM, Francis Daly
wrote:<br>
</div>
<blockquote cite="mid:20150204191532.GE3125@daoine.org"
type="cite">
<pre wrap="">On Wed, Feb 04, 2015 at 11:07:13AM -0800, Igal @ getRailo.org wrote:
Hi there,
</pre>
<blockquote type="cite">
<pre wrap="">I want to be able to identify requests by a unique id.
I'm able to do this in the location section:
proxy_set_header X-Request-Id
$pid-$msec-$remote_addr-$request_length;
but I want instead to set it to a variable, e.g. in the http section:
set $request_id $pid-$msec-$remote_addr-$request_length; ## does
this work?
</pre>
</blockquote>
<pre wrap=""><a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://nginx.org/r/set">http://nginx.org/r/set</a>
No.
It can be at "server" level, though.
</pre>
<blockquote type="cite">
<pre wrap=""> add_header X-Request-Id $request_id; ## I don't see it in
the response headers
</pre>
</blockquote>
<pre wrap="">You probably were not running with this configuration.
</pre>
<blockquote type="cite">
<pre wrap="">can it work?
</pre>
</blockquote>
<pre wrap="">With "set" at server{} level, yes.
All of the normal nginx configuration directive rules apply.
f
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Igal Sapir
Railo Core Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://getRailo.org/">http://getRailo.org/</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Igal Sapir
Railo Core Developer
<a class="moz-txt-link-freetext" href="http://getRailo.org/">http://getRailo.org/</a></pre>
</body>
</html>