homepage/httpd.conf

33 lines
939 B
ApacheConf

server.modules += ( "mod_alias", "mod_cgi", "mod_rewrite" )
server.port = 8001
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@" )
}