Base configuration file for quickly setting up a Lighttpd webserver with WebDAV support, seamless webdav-js web UI integration for managing files within any modern web browser and a fallback URL prefix serving old-school file indexes
- Lighttpd with mod_webdav and mod_openssl (For HTTPS, you may as well use other SSL library module if you wish)
In Debian/Ubuntu:apt install lighttpd lighttpd-mod-webdav lighttpd-mod-openssl - A directory of your choice containing the files and subdirectories you want to serve (The WebDAV server root)
- A separate directory for storing the static webdav-js assets. It is recommended to keep it outside the WebDAV server root
This directory should only contain another directory nameddav-assets, inside which you should place:- The
index.htmlfile from this repository webdav-min.jsfrom here at the webdav-js repostyle-min.cssfrom here at the webdav-js repo- (Optional) a
favicon.icoof your choice
- The
- Get the
lighttpd-webdavjs.confconfiguration template from this repo and read through the file filling variables as you need where indicated - Try the config:
/usr/sbin/lighttpd -D -f /path/to/your/lighttpd-webdavjs.conf - Once successfully working, you're all set! You may now use your distro-specific means to set it up as a permanent service. In Debian/Ubuntu overwrite
/etc/lighttpd/lighttpd.confwith your custom config file
