I think the problem is the order of your deny and allow statements. Nginx
processes them in turn. So nginx reads the allow one okay, but then reads the
subsequent one as "deny all (including 10)". Hence xls are denied to all.
If you swap the order then it should work as intended (assuming th
Based on your configuration snippet there doesn't appear to be anything
wrong.
Except for the fact that
"/etc/nginx/html/_upload/article/files/d7/c2.xlsx" doesn't seem to exist
on system. Which means either your document root is set wrong for your
server block, or you actually don't have a f
Hi all,
I am using nginx as my reverse proxy, and I do not want all Excel files in
my server to be accessed in the internet. So I add this in my nginx.conf:
location ~* \.(xls|xlsx)$ {
allow 10.0.0.0/8;
deny all;
}
while my intranet address is 10.0.0.0/8. I found in interne