<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hello,<br><br>I'm trying to support this in my nginx.conf:<br><br>my_custom_module_block {<br>  directive_for_my_custom_<wbr>module_block "Some value";<br>}<br><br>Here is how I'm setting up the commands:<br><br>  static ngx_command_t ngx_my_custom_module_commands[<wbr>] = {                                 <br>      {                                                                                <br>       ngx_string("my_custom_module_<wbr>block"), /* directive */                                    <br>        NGX_HTTP_SRV_CONF |                                                            <br>        NGX_HTTP_LOC_CONF |                                                            <br>        NGX_CONF_NOARGS |                                                              <br>        NGX_CONF_BLOCK,                                                                <br>        my_custom_module_block, /* configuration setup function */                     <br>        0, /* No offset. Only one context is supported. */                             <br>        0, /* No offset when storing the module configuration on struct. */            <br>        NULL                                                                           <br>      },                                                                               <br>                                                                                      <br>     {                                                                                <br>        ngx_string("directive_for_my_<wbr>custom_module_block"), /* directive */                                      <br>        NGX_CONF_TAKE1,                                                                <br>        ngx_directive_for_my_custom_<wbr>module_block_cmd, /* configuration setup function */                         <br>        0, /* No offset. Only one context is supported. */                             <br>        0, /* No offset when storing the module configuration on struct. */            <br>        NULL                                                                           <br>     },                                                                               <br>                                                                                      <br>      ngx_null_command /* command termination */                                       <br>  };  <br><br>Everything compiles fine; however, I receive the following error and nginx won't start:<br><br>2017/06/28 21:02:44 [emerg] 1#1: "directive_for_my_custom_<wbr>module_block" directive is not allowed here in /etc/nginx/nginx.conf:19<br>nginx: [emerg] "directive_for_my_custom_<wbr>module_block" directive is not allowed here in /etc/nginx/nginx.conf:19<br><br>If anyone could be of assistance I would greatly appreciate it.<br><font color="#888888"><br></font><span style="color:rgb(136,136,136)">-- </span><br><span style="color:rgb(136,136,136)">Thanks,</span><br><span style="color:rgb(136,136,136)">Joe Spencer (member)</span><br><div><span class="HOEnZb"><font color="#888888"><div class="m_9024601758544015064gmail_signature"><div dir="ltr"><div>Kogo Software LLC</div></div></div>
</font></span></div>
</div><br>
</div></div>