This is the error_log from my nginx :
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"
I know why nginx shows 404's error code, the root path is changed from
/var/www/antituhan/
to
/usr/share/nginx/html/
And this is the latest configuration :
location ~ ^/.*(\.exe|\.rar)$ {
root /path/to/dir/;
deny ip.ad.dr.es/19;
allow all;
}
And, it's works :) Thanks Igor for remind me to read the error_log ^^v
Thanks all, case solved :)
[daemon@antituhan.com ~]#