Welcome! Log In Create A New Profile

Advanced

Re: [ASK] Restrict direct link file access

antituhan
August 18, 2010 11:58PM
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 :)
--
View this message in context: http://nginx.2469901.n2.nabble.com/ASK-Restrict-direct-link-file-access-tp5417795p5438868.html
Sent from the nginx mailing list archive at Nabble.com.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

[ASK] Restrict direct link file access

antituhan August 13, 2010 01:54PM

Re: [ASK] Restrict direct link file access

edogawaconan August 13, 2010 07:06PM

Re: [ASK] Restrict direct link file access

antituhan August 16, 2010 01:12AM

Re: [ASK] Restrict direct link file access

Cliff Wells August 16, 2010 06:38AM

Re: [ASK] Restrict direct link file access

antituhan August 16, 2010 01:32PM

Re: [ASK] Restrict direct link file access

Cliff Wells August 16, 2010 05:56PM

Re: [ASK] Restrict direct link file access

antituhan August 17, 2010 08:42PM

Re: [ASK] Restrict direct link file access

Cliff Wells August 17, 2010 09:58PM

Re: [ASK] Restrict direct link file access

Igor Sysoev August 18, 2010 03:00AM

Re: [ASK] Restrict direct link file access

antituhan August 18, 2010 11:58PM

Re: [ASK] Restrict direct link file access

antituhan August 16, 2010 01:38PM

Re: [ASK] Restrict direct link file access

Ensiferous August 16, 2010 06:01PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready