mcnewton / nginx_webdav Goto Github PK
View Code? Open in Web Editor NEWNginx WebDav configuration for multiple clients
Nginx WebDav configuration for multiple clients
Hello,
When applying this config to my WebDAV server, I noticed that subfolder links are broken in the web browser. To be precise, let's say we have a WebDAV share at
https://example.com/webdav/
so, if there is a folder called 'folder1' when you are clicking it, it shall take you to
https://example.com/webdav/folder1/
and when you open a file in the folder, it will be
https://example.com/webdav/folder1/sample.txt
everything works fine at this moment.
However, when you open the share without a trailing slash in the end,
https://example.com/webdav
When you click on 'folder1', it will instead take you to
https://example.com/folder1
and thus, you get a 404 error. If you open the folder as https://example.com/webdav/folder1
without trailing slash and attempt to open the file in it, it will take you to
https://example.com/webdav/sample.txt
and you will also get a 404 error.
I have little knowledge of Nginx, so I don't know why it happened. For now, the temporary fix for me is to disable the part for working with Finder and Explorer and let the browser auto-redirect all links to the version with a trailing slash.
Best regards
Jayden
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.