-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
405 Method not allowed on default configuration #19
Comments
Your browser? This is a webdav server. What is the request your browser is making? Edit: This is probably correct, though, note the readme explains this already:
|
I tried Chrome, and Edge. Both results are the same. I'd like to have a prefix there for webdav, because I want to keep original file_server URL unchanged. So client/browser can access file server at https://localhost/ and access webdav at https://localhost/dav. Another interesting finding is that, even the latter Caddyfile works (w/o prefix), a HEAD request from client will return the same 405. I do not know why, but some WebDAV client checks HEAD request as well for webdav server. Now this caddy webdav module returns 405 so basically those clients cannot work with Caddy2+webdav. Any insights? |
try caddyfile like this http://localhost:5001 @notget { route @notget { file_server browse |
Clean download (from https://caddyserver.com/download) and installation of Caddy2+webdav on Mac OS Catalina.
Browser gets status code 405 and shows Method not allowed for https://localhost/dav, with Caddyfile extracted from Readme as below,
localhost
root * /srv
route {
rewrite /dav /dav/
webdav /dav/* {
prefix /dav
}
file_server
}
<<<
If replaced it with below (basically remove rewrite and prefix), everything works with http://localhost URL.
localhost
root * /srv
route {
webdav {
}
file_server
}
<<<
Cannot find any clues anywhere :(... please kindly share any advices. Thanks.
The text was updated successfully, but these errors were encountered: