Welcome! Log In Create A New Profile

Advanced

Re: PUT & access_by_lua_file

April 17, 2015 01:58PM
Упростил схему.
1. из dav_methods изъял PUT
2. отключил луа авторизатор
тестил BitKinex'ом

Результат: метод PUT не блокирует nginx, хотя он запрещён в модуле DAV.
то есть всё как было. сначало принимаем большой файл, а потом говорим, что нам этого нельзя.

server {
listen 80;
server_name dav.example.com;
server_name_in_redirect off;
access_log /var/log/nginx/dav-access.log main;
location / {
access_by_lua_file /etc/nginx/lua/auth-dav1.lua;
dav_methods DELETE COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
create_full_put_path on;
dav_access user:rw group:rw;
client_body_temp_path /opt/itcod-dav.tmp/;
client_max_body_size 0;
autoindex on;
root /opt/home/;
}
location ~/\.ht {
deny all;
}
}
Subject Author Posted

PUT & access_by_lua_file

itcod April 16, 2015 04:27AM

Re: PUT & access_by_lua_file

itcod April 16, 2015 04:51AM

Re: PUT & access_by_lua_file

Илья Шипицин April 16, 2015 06:34AM

Re: PUT & access_by_lua_file

itcod April 16, 2015 02:56PM

Re: PUT & access_by_lua_file

Илья Шипицин April 16, 2015 06:36AM

Re: PUT & access_by_lua_file

itcod April 16, 2015 02:47PM

Re: PUT & access_by_lua_file

Илья Шипицин April 16, 2015 11:26PM

Re: PUT & access_by_lua_file

itcod April 17, 2015 02:07AM

Re: PUT & access_by_lua_file

mva April 17, 2015 02:16AM

Re: PUT & access_by_lua_file

itcod April 17, 2015 02:50AM

Re: PUT & access_by_lua_file

mva April 17, 2015 06:32AM

Re: PUT & access_by_lua_file

itcod April 17, 2015 08:30AM

Re: PUT & access_by_lua_file

Илья Шипицин April 17, 2015 07:12AM

Re: PUT & access_by_lua_file

itcod April 17, 2015 08:36AM

Re: PUT & access_by_lua_file

mva April 17, 2015 08:46AM

Re: PUT & access_by_lua_file

itcod April 17, 2015 09:01AM

Re: PUT & access_by_lua_file

itcod April 17, 2015 09:05AM

Re: PUT & access_by_lua_file

itcod April 17, 2015 11:12AM

Re: PUT & access_by_lua_file

Oleksandr V. Typlyns'kyi April 17, 2015 06:02PM

Re: PUT & access_by_lua_file

itcod April 18, 2015 01:34AM

Re: PUT & access_by_lua_file

Илья Шипицин April 17, 2015 02:52PM

Re: PUT & access_by_lua_file

itcod April 18, 2015 01:56AM

Re: PUT & access_by_lua_file

itcod April 17, 2015 03:03AM

Re: PUT & access_by_lua_file

itcod April 17, 2015 01:58PM

Re: PUT & access_by_lua_file

itcod April 17, 2015 02:41PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 97
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready