summaryrefslogtreecommitdiff
path: root/mail/roundcube/files/lighttpd.conf
blob: 0a160c18fc55b88d31adeca7c522cb335c43c499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $NetBSD: lighttpd.conf,v 1.1 2018/05/16 08:14:41 triaxx Exp $
#
# Roundcube example fragment for www/lighttpd
# (inspired by @DOCDIR@/INSTALL)

# Following modules need to be loaded:
#server.modules += (
#	"mod_fastcgi",
#	"mod_setenv",
#	"mod_compress",
#	"mod_alias",
#)

$HTTP["url"] =~ "^/roundcube" {
	alias.url = ( "/roundcube" => "@RCDIR@" )
	static-file.etags = "enable"
	etag.use-mtime = "enable"
	$HTTP["url"] =~ "^/roundcube/(plugins|skins|program)" {
		setenv.add-response-header  = ( "Cache-Control" => "public, max-age=2592000")
	}
	compress.cache-dir = var.cache_dir + "/cache/compress"
	compress.filetype = ("text/plain", "text/html", "text/javascript", "text/css", "text/xml", "image/gif", "image/png")
	fastcgi.server = (
		".php" => 
		(( "socket" => var.socket_dir + "/roundcube.sock",
		)),
	)
}