<p dir="ltr"> It depends on the module. If it is configurable on main, server or location blocks. But generally you can enable/disable at any of these 3 levels </p>
<div class="gmail_quote">On Jun 20, 2016 11:44, "Justin Kennedy" <<a href="mailto:justin@justinkennedy.ca">justin@justinkennedy.ca</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'll try to simply the question: Can a module be enabled only for specific server blocks? <div><br></div><div>I.e. If a module is "included" in server block B then it will not interfere with requests on server block A (or any other).<div><br></div><div>Please advice, thank you!</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 June 2016 at 14:32, Justin Kennedy <span dir="ltr"><<a href="mailto:justin@justinkennedy.ca" target="_blank">justin@justinkennedy.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am developing an nginx module and one of the requirements is to enable the module only for specific sites or virtual hosts (using a directive I would suppose). </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Is this possible with nginx? </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thank you,</div><div style="font-size:12.8px">-Justin</div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Justin Kennedy<div>Software Developer</div><div><a href="tel:506%20645%201195" value="+15066451195" target="_blank">506 645 1195</a></div><div><br></div></div></div></div></div>
</div>
<br>_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br></blockquote></div>