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

PROPFIND doesn't play well with rewrites #75

Open
alecov opened this issue Mar 4, 2024 · 0 comments
Open

PROPFIND doesn't play well with rewrites #75

alecov opened this issue Mar 4, 2024 · 0 comments

Comments

@alecov
Copy link

alecov commented Mar 4, 2024

PROPFIND doesn't play well with rewrites nor try_file.

Example:

location /dav {
    ...
    root /srv/dav/$remote_user;
    # just remove /dav path prefix,
    # so we don't need an additional /dav subpath in the filesystem:
    rewrite ^/dav/(.*)$ /$1 break;
}

PROPFIND for http://myserver/dav/x returns:

<D:href>/x</D:href>

when it should have a way to return the href path unaltered, since this is what clients expect:

<D:href>/dav/x</D:href>
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

1 participant