<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I am running nginx webserver and i have set the below location block in nginx.conf configuration file to prevent a file to download.  When i hit <a href="http://example.com/web.config">http://example.com/web.config</a> on the browser, the web.config file gets downloaded. It is not working. </div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>location ~* \.(config)$ {</div></div><div><div>    deny all;</div></div><div><div>}</div></div></blockquote><div dir="ltr"><div><br></div><div>I will appreciate if somebody can pitch in for help. Thanks in Advance.<br></div><div><br></div><div>Best Regards,</div><div><br></div><div>Kaushal</div></div></div>