Skip to content

PROPFIND doesn't play well with rewrites #75

@alecov

Description

@alecov

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions