1:98d18b9ebcb4
Anton Shestakov <av6@dwimlabs.net>, Tue, 17 Jul 2018 13:17:59 +0800
playbook, hgweb role

roles/hgweb/templates/etc/lighttpd/conf-available/hgweb.conf

Permissions: -rw-r--r--

Other formats: Feeds:
server.modules += (
# "mod_redirect",
# "mod_alias",
"mod_proxy",
)
$HTTP["host"] == "{{ hgweb_subdomain }}.{{ hostname }}" {
server.document-root = "/home/{{ hgweb_user }}/hg/mercurial/templates/"
$HTTP["url"] !~ "^/static/|^/robots.txt$" {
# mod_proxy uses "host" instead of "socket", because of course
proxy.server = ( "" => (( "host" => "/home/{{ hgweb_user }}/hgwebfiles/socket" )) )
}
alias.url = (
"/robots.txt" => "/home/{{ hgweb_user }}/hgwebfiles/robots.txt"
)
url.redirect-code = 301
url.redirect = (
"/favicon.ico" => "/static/hgicon.png"
)
}