Lighttpd webdav: Difference between revisions
From wikinotes
(4 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
= Configuration = | = Configuration = | ||
<blockquote> | <blockquote> | ||
{{ | {{ TODO | | ||
this is WIP instructions | |||
}} | |||
{{ NOTE | | |||
lighttpd must be compiled with sqlite support <code>./configure --with-webdav-props</code>.<br> | |||
you'll need to build it from ports on freebsd | |||
}} | |||
< | Ignore <code>modules.conf</code> and the various <code>conf.d/*.conf</code> files,<br> | ||
but mind your module order according to <code>module.conf</code>'s instructions. | |||
</ | |||
<syntaxhighlight lang="bash"> | |||
# Global Vars | |||
var.log_root = "/var/log/lighttpd" | |||
var.server_root = "/usr/local/www/lighttpd" | |||
var.state_dir = "/var/run" | |||
var.home_dir = "/var/run/lighttpd" | |||
var.conf_dir = "/usr/local/etc/lighttpd" | |||
# Enable Modules | |||
server.modules = ( | |||
"mod_access", | |||
"mod_webdav", | |||
) | |||
# Daemon Settings | |||
server.username = "www" | |||
server.groupname = "www" | |||
server.pid-file = state_dir + "/lighttpd.pid" | |||
server.errorlog = log_root + "/error.log" | |||
include conf_dir + "/conf.d/access_log.conf" | |||
include conf_dir + "/conf.d/mime.conf" | |||
# Server | |||
webdav.activate = "enable" | |||
server.document-root = "/usr/local/www/lighttpd-webdav/data" | |||
server.sqlite-db-name = "/usr/local/www/lighttpd-webdav/webdav.db" | |||
server.bind "0.0.0.0" | |||
server.port = 80 | |||
server.use-ipv6 = "disable" | |||
# ... add auth semantics ... | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Configuration --> | </blockquote><!-- Configuration --> |
Latest revision as of 16:35, 12 February 2023
Let's create an authenticated webdav server, hosted by lighttpd.
Tutorials
lighttpd webdav on debian https://www.howtoforge.com/tutorial/how-to-install-webdav-with-lighttpd-on-debian-jessie/ lighttpd webdav https://gist.github.com/dream1986/4e4a1f24c0b24d216d75e2f9e25fc78d
Configuration
TODO:
this is WIP instructions
NOTE:
lighttpd must be compiled with sqlite support
./configure --with-webdav-props
.
you'll need to build it from ports on freebsdIgnore
modules.conf
and the variousconf.d/*.conf
files,
but mind your module order according tomodule.conf
's instructions.# Global Vars var.log_root = "/var/log/lighttpd" var.server_root = "/usr/local/www/lighttpd" var.state_dir = "/var/run" var.home_dir = "/var/run/lighttpd" var.conf_dir = "/usr/local/etc/lighttpd" # Enable Modules server.modules = ( "mod_access", "mod_webdav", ) # Daemon Settings server.username = "www" server.groupname = "www" server.pid-file = state_dir + "/lighttpd.pid" server.errorlog = log_root + "/error.log" include conf_dir + "/conf.d/access_log.conf" include conf_dir + "/conf.d/mime.conf" # Server webdav.activate = "enable" server.document-root = "/usr/local/www/lighttpd-webdav/data" server.sqlite-db-name = "/usr/local/www/lighttpd-webdav/webdav.db" server.bind "0.0.0.0" server.port = 80 server.use-ipv6 = "disable" # ... add auth semantics ...