summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/lighttpd-supplement.conf
blob: a07564a7fa445da77b40827903a04ef0704dd8f5 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#server.errorlog-use-syslog      = "enable"
#$HTTP["url"] !~ "\.(jpe?g|png|gif|css)" { accesslog.use-syslog = "enable" }

$HTTP["url"] =~ "(mythweb)" {
server.error-handler-404   = "/error/mythweb.html"
}

$HTTP["url"] =~ "(phpMyAdmin)" {
server.error-handler-404   = "/error/phpadmin.html"
}

$HTTP["url"] =~ "(xymon)" {
server.error-handler-404   = "/error/hobbit.html"
}

$HTTP["url"] =~ "(mythexport)" {
server.error-handler-404   = "/error/mythexport.html"
}

$HTTP["url"] =~ "(call_log)" {
server.error-handler-404   = "/error/call_log.html"
}
## error-handler for status 404
#server.error-handler-404   = "/error-handler.html"
server.errorfile-prefix = "/data/srv/httpd/htdocs/error/status-"

alias.url = ( "/logs/" => "/var/log/" )
$HTTP["url"] =~ "^/logs($|/)" {
dir-listing.activate= "enable"
dir-listing.hide-dotfiles = "enable"
dir-listing.external-css = "/frame.css"
}



#cgi.assign                 = ( ".pl"  => "/usr/bin/perl",
#                                ".sh" => "/bin/bash" ,
#                                ".py" => "/usr/bin/python" ,
#                               ".cgi" => "/bin/bash" )


$SERVER["socket"] == ":1337" {
  server.document-root = "/data/srv/httpd/cgi/"
  alias.url = ( "/templates/" => "/home/mythtv/templates/" )

}


#### status module
status.status-url          = "/server-status"
status.config-url          = "/server-config"

#ssi.extension              = ( ".shtml" )