<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Nobody use this variable?<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 26, 2017, at 2:28 PM, Georgi Georgiev <<a href="mailto:georgi@serversolution.info" class="">georgi@serversolution.info</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<br class=""><div class=""> I have enabled request_id headers in nginx (which works as reverse proxy) by the following way:</div><div class=""><br class=""></div><div class="">In <a href="http://nginx.com/" class="">nginx.co</a>nf my log format hs included $request_id as follows:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(221, 221, 221);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">log_format main '$remote_addr - $remote_user [$time_local] "$request" '</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(221, 221, 221);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> '$status $body_bytes_sent $request_id "$http_referer" '</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(221, 221, 221);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> '"$http_user_agent" "$http_x_forwarded_for”';</span></div></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(221, 221, 221);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><br class=""></div><div class="">In the ghost configs I have headers like the following:</div><div class=""><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(221, 221, 221);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">location / {</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(221, 221, 221);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">...</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(221, 221, 221);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">add_header X-Request-Id $request_id;</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(221, 221, 221);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">proxy_set_header <span class="Apple-tab-span" style="white-space:pre"> </span> X-Request-Id $request_id;</span></div></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(221, 221, 221);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class="">I would ike to accomplish the following thing.</div><div class=""><br class=""></div><div class="">1. In all logs and all requests (access, error, mod security audit logs) the request_id to be logged (as it should be, but currently not work).</div><div class="">2. When I open the site X-Request-ID to be set in request headers, not only in response headers. Currently I have the x-request-id header only in the response headers.</div><div class="">3. When I have been blocked my some mod security rule with status 403 the headers to be present and the id to be logged too in the logs. Currently on 403 response I haven’t the header neither in request headers and response headers (only on normal query).</div><div class=""><br class=""></div><div class="">Can you please explain me where I am wrong? Thank you in advance.</div></div></div></blockquote></div><br class=""></div></body></html>