Nginx reverse proxy webdav status code 405 Method Not Allowed.

Started by M@rch0n, October 02, 2019, 04:38:12 PM

Previous topic - Next topic
Hello,

I recently migrated my LINUX with POUND to OPNsense with NGINX. I now have a problem accessing webdav with status code 405 (Method Not Allowed). With POUND I decided to add the module "xHTTP 3", to allow extensions of MS WebDAV verbs (SUBSCRIBE, UNSUBSCRIBE, NOTIFY, BPROPFIND, BPROPPATCH, POLL, BMOVE, BCOPY, BDELETE, CONNECT).

How to modify it in Nginx in OPNsense?

I have no idea what xHTTP is but nginx is not configured to block any verbs and I am proxying WebDAV to a nextcloud without any problems.

Can you explain the case a bit better?

Good morning Fabian,

After I switched to OPNsense, users of a system started reporting that they are receiving the error "405 Method not allowed". I had this same problem a few years ago when I activated the pound and to solve at the time I had to set this parameter in pound xHTTP.

Pound manual.
https://linux.die.net/man/8/pound

But now I have the same problem. In the Nginx log I see the 405 log as follows attachment.

This is a GET request. If nginx would block that, it would not serve any web page (if you enter an URL in your browser page, it will automatically send a GET request). This error probably comes from your upstream server. Please check its logs.

If you think nginx is the reason for the error, please send me the full HTTP request incliding the headers and the body (which is unlikely to exist on a GET request from a browser).


Thank you Fabian,

This is an application, I already requested the dev team to complete the HTTP request for testing. As soon as I receive I follow the tests and inform the result.

Thanks.