I built nginx on a freebsd system with the following configuration options:
./configure ... –with-http_dav_module
Now this is my configuration file:
user www www; worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream;
Now the following things check the syntax of the confiuration file by issuing nginx -t , and then do a graceful reboot as follows: nginx -s reload .
Now, when I point my web browser to nginx-ip-address: 8080, I get a list of my files and folders, etc. etc. (I think this is due to the autoindex function).
But the problem is that when I try to check webdav using a corpse, as follows:
cadaver http://nginx-ip-address:8080/
He asks me to enter authorization credentials, and then after entering the password, he causes the following error:
Could not open Collection: 405 Not Allowed
And the following line is nginx-error-log, which occurs simultaneously:
*125 no user/password was provided for basic authentication, client: 172.16.255.1, server: localhost, request: "OPTIONS / HTTP/1.1", host: "172.16.255.129:8080"
The username and password are just wonderful when you try to access it from a web browser, and then what happens here?