Skip to content
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

How to have WebDAV server run under a subdirectory of a subdomain? #40

Open
poperigby opened this issue Dec 30, 2023 · 3 comments
Open

Comments

@poperigby
Copy link

poperigby commented Dec 30, 2023

I'm having some trouble setting this up. I want:

  • A file browser web interface running on cloud.example.com
  • This WebDAV server running under cloud.example.com/dav

How can I do this?

I tried this, but it didn't work:

drive.example.com {
    webdav /dav/* {
        root /srv/files
        prefix /dav
    }
}

It gives me a blank screen when I navigate to drive.example.com/dav.

@mholt
Copy link
Owner

mholt commented Dec 31, 2023

Are you navigating in your browser, or a WebDAV client? What is the actual response from the server?

@poperigby
Copy link
Author

I was navigating in my browser. When I just have this for my Caddyfile entry...

drive.example.com {
    webdav {
        root /srv/files
    }
}

...I get a white screen with this on it:

/Tue, 07 Nov 2023 17:35:43 GMTHTTP/1.1 200 OK

I'm getting a 200 response from the server. It actually doesn't seem to matter what subdirectory I navigate to under drive.example.com, it will always be a grey screen with a 200 response.

@mholt
Copy link
Owner

mholt commented Mar 7, 2024

Do you need to wrap the webdav directive in a handle_path block? handle_path /dav/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants