<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear experts</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Need a help on a custom configuration block directive. I have created a dynamic module for logging (some specific features). Looking for a custom configuration block for my module, since this needs to be applied to all servers so wanted to block inside http
as in MY_MODULE_CONFIGURATION below. What is the way to do this? any samples will help (right now on doing this I get unsupported directive error</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span class="codeLine-a3169fbc" data-key="10e954ff4a8d40269e6c88adb9d7ee30"><span data-key="2692e597039e442c93c872263d4abc32"><span data-offset-key="2692e597039e442c93c872263d4abc32:0"><span class="prism-token token 16">http
</span></span><span data-offset-key="2692e597039e442c93c872263d4abc32:1"><span class="prism-token token 17 punctuation ">{</span></span></span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
<div class="codeLine-a3169fbc" data-key="ecc9234414a8481fba39611e42e2c354"><span data-key="9ebbd6e7ba934a54abf5dd228fa22f88"><span data-offset-key="9ebbd6e7ba934a54abf5dd228fa22f88:1"><span class="prism-token token 19 punctuation ">MY_MODULE_CONFIGURATION {</span></span></span></div>
<div class="codeLine-a3169fbc" data-key="52b431d26dba4bd8ac8a51e19484bc51"><span data-key="3cdca5089eca44858d6cf49953e55546"><span data-offset-key="3cdca5089eca44858d6cf49953e55546:0"><span class="prism-token token 20">name </span></span><span data-offset-key="3cdca5089eca44858d6cf49953e55546:1"><span class="prism-token token 21 string ">"logging
module"</span></span><span data-offset-key="3cdca5089eca44858d6cf49953e55546:2"><span class="prism-token token 22 punctuation ">;</span></span></span></div>
<div class="codeLine-a3169fbc" data-key="52b431d26dba4bd8ac8a51e19484bc51">log_collector "localhost"</div>
<div class="codeLine-a3169fbc" data-key="52b431d26dba4bd8ac8a51e19484bc51">log_port 9607</div>
<div class="codeLine-a3169fbc" data-key="5799044f6ff240a3b5d724f1df89368e">log_frequency 10</div>
<div class="codeLine-a3169fbc" data-key="7a965a5fb83249618ee9d8e8156eafff"><span data-key="6b5f3cf452824158885a96e3fd128e50"><span data-offset-key="6b5f3cf452824158885a96e3fd128e50:0"><span class="prism-token token 38"></span></span><span data-offset-key="6b5f3cf452824158885a96e3fd128e50:1"><span class="prism-token token 39 punctuation ">}</span></span></span></div>
<div class="codeLine-a3169fbc" data-key="b090664fa2cf4b898af6f76b73415cf5"><span data-key="7f12181eac384dbf94dd90c68ffac87d"><span data-offset-key="7f12181eac384dbf94dd90c68ffac87d:0"><span data-slate-zero-width="n"></span></span></span></div>
<div class="codeLine-a3169fbc" data-key="b58bcbda13fb4966b369b3014239f8a2"><br>
</div>
<div class="codeLine-a3169fbc" data-key="b58bcbda13fb4966b369b3014239f8a2">....</div>
<div class="codeLine-a3169fbc" data-key="b58bcbda13fb4966b369b3014239f8a2"><span class="codeLine-a3169fbc" data-key="faf1085c27064e70ac481282ca93c692"><span data-key="cb64c9fc55674d1b9906ced85e69190e"><span data-offset-key="cb64c9fc55674d1b9906ced85e69190e:0"><span class="prism-token token 55">access_log
/var/log/nginx/access.log </span></span><span data-offset-key="cb64c9fc55674d1b9906ced85e69190e:1"><span class="prism-token token 56 punctuation ">;</span></span></span></span>
<div class="codeLine-a3169fbc" data-key="da6e783fe0324491aaed183e10f5ed7e"><span data-offset-key="0a3b5ca131b24fb59e840f5402e34f8f:0"><span class="prism-token token 59">keepalive_timeout 65</span></span><span data-offset-key="0a3b5ca131b24fb59e840f5402e34f8f:1"><span class="prism-token token 60 punctuation ">;</span></span><br>
</div>
<div class="codeLine-a3169fbc" data-key="1cd210cfa629404387af46133a465170"><span data-key="3682941c72824a23adb9888386bc42dd"><span data-offset-key="3682941c72824a23adb9888386bc42dd:0"><span data-slate-zero-width="n"></span></span></span></div>
<div class="codeLine-a3169fbc" data-key="e145fb1683f24b7ea79a96fcaa05647e"><span data-key="139f816b70504ce8a222c4cc905a4278"><span data-offset-key="139f816b70504ce8a222c4cc905a4278:0"><span class="prism-token token 61">server
</span></span><span data-offset-key="139f816b70504ce8a222c4cc905a4278:1"><span class="prism-token token 62 punctuation ">{</span></span></span></div>
<div class="codeLine-a3169fbc" data-key="bd1eec45030a4c31bca01cdea0289670"><span data-key="2aeb0a3844b5449186b29a3152dd89e1"><span data-offset-key="2aeb0a3844b5449186b29a3152dd89e1:0"><span class="prism-token token 63">listen 80</span></span><span data-offset-key="2aeb0a3844b5449186b29a3152dd89e1:1"><span class="prism-token token 64 punctuation ">;</span></span></span></div>
<div class="codeLine-a3169fbc" data-key="2a4610e32ab24c7cb8b2b41a7577593c"><span data-key="66842e3e60614b47b3fd27b74a97bac2"><span data-offset-key="66842e3e60614b47b3fd27b74a97bac2:0"><span class="prism-token token 65">server_name localhost</span></span><span data-offset-key="66842e3e60614b47b3fd27b74a97bac2:1"><span class="prism-token token 66 punctuation ">;</span></span></span></div>
<div class="codeLine-a3169fbc" data-key="4bac760168004813b369c69ab3c96df8"><span data-key="591386e38c1545588781444db715abc7"><span data-offset-key="591386e38c1545588781444db715abc7:0"><span data-slate-zero-width="n"></span></span></span></div>
<div class="codeLine-a3169fbc" data-key="741fcb11e9df440383db1f277c40dc9d"><span data-key="fce33edfacb84e5d8102768515abf25a"><span data-offset-key="fce33edfacb84e5d8102768515abf25a:0"><span class="prism-token token 67">location /
</span></span><span data-offset-key="fce33edfacb84e5d8102768515abf25a:1"><span class="prism-token token 68 punctuation ">{</span></span></span></div>
<div class="codeLine-a3169fbc" data-key="741fcb11e9df440383db1f277c40dc9d"><span data-key="fce33edfacb84e5d8102768515abf25a"><span data-offset-key="fce33edfacb84e5d8102768515abf25a:1"><span class="prism-token token 68 punctuation ">....</span></span></span></div>
<div class="codeLine-a3169fbc" data-key="436fc34502014881b51ada8f5c7ecdbd">}<br>
</div>
<div class="codeLine-a3169fbc" data-key="436fc34502014881b51ada8f5c7ecdbd">}</div>
<div class="codeLine-a3169fbc" data-key="436fc34502014881b51ada8f5c7ecdbd"><br>
</div>
</div>
</div>
<div>
<div id="Signature">
<div>Thanx</div>
</div>
</div>
</body>
</html>