This is the error_log from my nginx :
<pre>2010/08/19 10:15:24 [error] 10941#0: *56 open() "/usr/share/nginx/html/e107_files/downloads/OS/89xx/OFFICIAL_8900M_PBr5.0.0_rel1004_PL5.2.0.58_A5.0.0.592_Wind_Hellas.exe" failed (2: No such file or directory), client: ip.ad.dr.es, server: antituhan.com, request: "GET /e107_files/downloads/OS/89xx/OFFICIAL_8900M_PBr5.0.0_rel1004_PL5.2.0.58_A5.0.0.592_Wind_Hellas.exe HTTP/1.1", host: "antituhan.com"
</pre>

I know why nginx shows 404's error code, the root path is changed from 

<pre>/var/www/antituhan/</pre>

to 

<pre>/usr/share/nginx/html/</pre>

And this is the latest configuration :
<pre>
    location ~ ^/.*(\.exe|\.rar)$ {
        root   /path/to/dir/;
        deny   ip.ad.dr.es/19;
        allow  all;
    }
</pre>

And, it's works :) Thanks Igor for remind me to read the error_log ^^v
Thanks all, case solved :)
<br><hr align="left" width="300">
View this message in context: <a href="http://nginx.2469901.n2.nabble.com/ASK-Restrict-direct-link-file-access-tp5417795p5438868.html">Re: [ASK] Restrict direct link file access</a><br>
Sent from the <a href="http://nginx.2469901.n2.nabble.com/">nginx mailing list archive</a> at Nabble.com.<br>