mirror of
https://codeberg.org/angestoepselt/homepage.git
synced 2025-05-24 14:46:16 +00:00
40 lines
1.1 KiB
ApacheConf
40 lines
1.1 KiB
ApacheConf
server.modules += ( "mod_alias", "mod_cgi", "mod_rewrite", "mod_setenv" )
|
|
|
|
server.port = 80
|
|
|
|
include "@lighttpd@/share/lighttpd/doc/config/conf.d/mime.conf"
|
|
|
|
server.document-root = "@site@"
|
|
index-file.names = ( "index.html" )
|
|
|
|
|
|
$HTTP["request-method"] =~ "GET|POST" {
|
|
url.rewrite = (
|
|
"^/kontakt" => "/cgi-bin/form.py",
|
|
"^/kontakt/problem" => "/cgi-bin/form.py",
|
|
"^/geld" => "/cgi-bin/form.py",
|
|
"^/mitmachen" => "/cgi-bin/form.py",
|
|
"^/computer-beantragen/organisation" => "/cgi-bin/form.py",
|
|
"^/computer-beantragen/privat" => "/cgi-bin/form.py",
|
|
"^/hardware-spenden/organisation" => "/cgi-bin/form.py",
|
|
"^/hardware-spenden/privat/laptop" => "/cgi-bin/form.py"
|
|
)
|
|
}
|
|
|
|
$HTTP["url"] =~ "^/cgi-bin/" {
|
|
alias.url += ( "/cgi-bin" => "@cgibin@" )
|
|
|
|
static-file.exclude-extensions = ( ".py" )
|
|
cgi.assign = ( ".py" => "@python@/bin/python" )
|
|
cgi.execute-x-only = "enable"
|
|
|
|
cgi.x-sendfile = "enable"
|
|
cgi.x-sendfile-docroot = ( "@site@" )
|
|
|
|
setenv.set-environment = (
|
|
"SITE_DIRECTORY" => env.SITE_DIRECTORY,
|
|
"ZAMMAD_URL" => env.ZAMMAD_URL,
|
|
"ZAMMAD_TOKEN" => env.ZAMMAD_TOKEN,
|
|
"ZAMMAD_GROUP" => env.ZAMMAD_GROUP
|
|
)
|
|
}
|