M
M
Mikhail Smykov2015-09-19 21:50:51
Nginx
Mikhail Smykov, 2015-09-19 21:50:51

Why files are not uploaded to nginx?

Good evening.
I have user www-data. It is specified in the nginx.conf settings:

user www-data;

I have a webdav folder where files need to be placed. I created it and set the rights:
chown -R www-data.www-data /home/webdav
I have a settings file for this web server:
server {
listen 0.0.0.0:80;
server_name storage.*********.biz;
client_max_body_size 20m;
location / {
root /home/webdav;
client_body_temp_path /tmp;
dav_methods PUT DELETE MKCOL COPY MOVE;
create_full_put_path on;
dav_access user:rw group:rw all:r;
location ~ \.(html|htm)$ {
allow 127.0.0.1;
allow 10.0.0.0/8;
deny all;
}
limit_except GET {
allow 10.0.0.0/8;
allow 127.0.0.1;
deny all;
}
}
}

When writing a file, it displays the following error in the nginx error log:
*a lot-of-unnecessary-reporting* access forbidden by rule *a lot-of-unnecessary-reporting*

Tell me, please, how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-09-19
@Chronosms

allow 10.0.0.0/8;
allow 127.0.0.1;
deny all;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question