Project

General

Profile

Bug #2913 » light.conf

lighttpd minimal configuration to recreate the issue - blowfist, 2018-10-07 02:43

 
1
server.modules = (
2
	"mod_proxy"
3
)
4

    
5
server.document-root        = "/var/www"
6
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
7
server.errorlog             = "/var/log/lighttpd/error.log"
8
server.pid-file             = "/var/run/lighttpd.pid"
9
server.username             = "_lighttpd"
10
server.groupname            = "_lighttpd"
11
server.port                 = 80
12

    
13
$HTTP["host"] =~ "localhost" {
14
	proxy.server = ( "" => ((
15
		"host" => "localhost"
16
		,"port" => 6080
17
		))
18
	)
19

    
20
	#proxy.header = (
21
	#	"map-host-request" => (
22
	#		"-" => "127.0.0.1:6080"
23
	#	)
24
	#	,"upgrade" => "enable"
25
	#)
26

    
27
}
28

    
29
index-file.names            = ( "index.php", "index.html", "index.lighttpd.html", "index.cgi" )
30
url.access-deny             = ( "~", ".inc" )
31
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
(2-2/3)