nginx-dav-ext-module
nginx-dav-ext-module copied to clipboard
Cant open folder with "." in the path
I'm currently facing a strange issue using nginx as WebDAV service. Some folders are getting downloaded either as "download.html" under chrome or as "IJS3-ydB.html" under Firefox instead of being opened.
Please have a look at the following three folders:
CITY OF ANGELS (Nitro Remix)/ # Can be opened
CITY OF ANGELS (Sero Remix)/ # Can be opened
CITY OF ANGELS (feat. Larry) (Larry Remix)/ # Cannot be opened, HTML file gets returned
Is this issue maybe there due to a URI encoding issue, white spaces etc.? I mean, the only real difference here is the "." at "feat. Larry". I had a similar issue in the past, where I was able to solve it with these two lines at my "location /webdav" sub location:
rewrite ^/([^\#]+)\#([^\#]+)$ /$1#$2 redirect;
rewrite '^/([^\&]+)\"\;\>\;$' /$1 redirect;
But I'm not sure how to get a workaround for this situation.
Thanks in advance