code-otto / lighttpd-webdavjs-conf Goto Github PK
View Code? Open in Web Editor NEWLighttpd + webdav-js quickstart WebDAV server configuration file
Lighttpd + webdav-js quickstart WebDAV server configuration file
Thanks for this fantastic configuration! It was extremely helpful getting a nice WebDAV interface on my OpenWrt router.
The Wiki for OpenWrt has a /very/ basic configuration which requires a copy of webdav-js for each served folder. My intention is to update the wiki with an adaptation of your solution (with attribution). It has to, however, play nicely with other configurations since lighttpd is also serving up my router's UI.
In the short term, I was able to get it to play nicely by surrounding the WebDAV configuration with a $SERVER directive. I then added in some basic auth and proceeded with an adaptation of your config...
$SERVER["socket"] == "192.168.11.1:8080" {
auth.backend = "plain"
auth.backend.plain.userfile = "/etc/lighttpd/webdav.shadow"
auth.require = (
"/" => ("method" => "basic", "realm" => "disk", "require" => "valid-user")
)
auth.cache = ("max-age" => "3600")
#Directory to be served over WebDAV
server.document-root = "/mnt/trunk/"
#Enable/disable read-only access
webdav.is-readonly = "disable"
...
I wanted to suggest that your solution would be much more universal if it was designed as drop-in configuration to tack onto existing configurations by adding, say, a 50-weddav.conf
file into /etc/lighttpd/conf.d
and was written such that it complements existing setups. So it could be set to work with address/webdav/ and address/webdav/basic/. As is stands, it assumes it will be all that lighttp is doing.
In any case, thanks again for doing this. It has been a great help.
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.