22 lines
491 B
Plaintext
22 lines
491 B
Plaintext
# NOTE: This is not a complete config file, as it does not yet provide Git-over-HTTP support.
|
|
|
|
# CHANGE THIS to your domain
|
|
$HTTP["host"] == "example.com" {
|
|
# TODO: add TLS support
|
|
# TODO: add Git-over-HTTP support
|
|
|
|
server.document-root="/var/www/git"
|
|
|
|
server.modules += ("mod_rewrite", "mod_access")
|
|
|
|
# Configure url-rewriting
|
|
url.rewrite-if-not-file = (
|
|
"^/(.*)$" => "/index.php/$1"
|
|
)
|
|
|
|
# deny access to /config.ini
|
|
$HTTP["url"] =~ "^/config.ini" {
|
|
url.access-deny = ("")
|
|
}
|
|
}
|