]> git.pld-linux.org Git - packages/eventum.git/blame - eventum-lighttpd.conf
up to 3.0.3
[packages/eventum.git] / eventum-lighttpd.conf
CommitLineData
18426839
ER
1#
2# This config provides two kinds of configuration, for url based ("/eventum")
3# and vhost based ("http://eventum.example.org").
4#
5# To use one of the configurations uncomment the other.
7bd3df31 6
37022e56
ER
7# To redirect all http requests to https server:
8#$SERVER["socket"] == ":80" {
9# $HTTP["host"] == "eventum.example.org" {
10# server.name = "eventum.example.org"
11# url.redirect = ( "^/(.*)" => "https://eventum.example.org/$1" )
12# }
13#}
14
18426839 15# running as alias, part 1
7a930844
ER
16alias.url += (
17 "/eventum" => "/usr/share/eventum/htdocs",
18)
18426839
ER
19
20# running as separate vhost, part 1
6dac82cb 21#$HTTP["host"] == "eventum.example.org" {
7a930844
ER
22# server.document-root = "/usr/share/eventum/htdocs",
23#}
18426839
ER
24
25# running as alias, part 2
7a930844 26$HTTP["url"] =~ "^/eventum/" {
18426839 27# running as separate vhost, part 2
6dac82cb 28#$HTTP["host"] == "eventum.example.org" {
18426839 29
7a930844
ER
30# # Make whole eventum password protected
31# auth.backend = "htpasswd"
32# auth.backend.htpasswd.userfile = "/etc/webapps/eventum/htpasswd"
33#
34# # rss has it's own authorization
35# $HTTP["url"] !~ "/rss\.php$" {
36# auth.require += (
37# "/" => (
38# "method" => "basic",
39# "realm" => "Eventum",
40# "require" => "valid-user"
41# )
42# )
43# }
44
c28270d0 45 # SCM integration. Set here IP of host running CVS, SVN, Git
18426839
ER
46 $HTTP["remoteip"] != "127.0.0.1" {
47 $HTTP["url"] =~ "/scm_ping\.php$" {
48 url.access-deny = ( "" )
49 }
50 }
0152475f
ER
51
52 # IP Restrict XMLRPC
53 $HTTP["url"] =~ "/rpc/xmlrpc.php" {
54 $HTTP["remoteip"] !~ "127.0.0.1" {
55 url.access-deny = ( "" )
56 }
57 }
18426839
ER
58}
59
60# vim:ts=4
This page took 0.033797 seconds and 4 git commands to generate.