Здравствуйте.
Необходимо ограничить доступ к файлам папки /orders-files (в ней содержатся
файлы с расширением doc) по ip, делаю так:
        location ^~ /orders-files/ {
                allow  123.45.678.90;
                deny all;
                client_max_body_size 32M;
                access_log off;
                break;
        }
        location ~*
^.+\.(css|js|svg|jpg|jpeg|gif|png|ico|zip|rar|doc|xls|pdf|exe|wav|bmp|rtf)$
{
                client_max_body_size 128M;
                access_log off;
                expires 7d;
                break;
        }

Такое впечатление, что нижний location мешает. Не могли бы помочь
разобраться...

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?21,283658,283658#msg-283658

_______________________________________________
nginx-ru mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Ответить