mirror of
https://github.com/webodf/WebODF.git
synced 2026-12-01 16:56:05 +01:00
26 lines
682 B
Plaintext
26 lines
682 B
Plaintext
# use with 'lighttpd -f lighttpd.conf -D'
|
|
|
|
server.document-root = "../../.."
|
|
|
|
server.port = 3000
|
|
|
|
mimetype.assign = (
|
|
".html" => "text/html",
|
|
".txt" => "text/plain",
|
|
".jpg" => "image/jpeg",
|
|
".png" => "image/png"
|
|
)
|
|
server.modules += ( "mod_webdav", "mod_cgi" )
|
|
|
|
$HTTP["url"] =~ "^/odfkit/odfkit/javascriptzip($|/)" {
|
|
webdav.activate = "enable"
|
|
webdav.is-readonly = "disable"
|
|
auth.backend = "htpasswd"
|
|
auth.backend.htpasswd.userfile = "/var/www/web1/passwd.dav"
|
|
auth.require = ( "" => ( "method" => "basic",
|
|
"realm" => "webdav",
|
|
"require" => "valid-user" ) )
|
|
|
|
cgi.assign = ( "pl" => "/usr/bin/perl" )
|
|
}
|