This repository has been archived on 2021-11-29. You can view files and clone it, but cannot push or open issues or pull requests.
simple-gitv/templates/lighttpd-git.conf.template

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 = ("")
}
}