Anton Shestakov <av6@dwimlabs.net>, Mon, 28 Sep 2020 21:29:27 +0800
playbook: update apt parameters
ServerName {{ hgweb_subdomain }}.{{ hostname }}
ServerAdmin webmaster@{{ hostname }}
DocumentRoot /home/{{ hgweb_user }}/hg/mercurial/templates
ErrorLog ${APACHE_LOG_DIR}/{{ hgweb_subdomain }}.{{ hostname }}.error.log
CustomLog ${APACHE_LOG_DIR}/{{ hgweb_subdomain }}.{{ hostname }}.access.log combined
WSGIScriptAlias / /home/{{ hgweb_user }}/hgwebfiles/hgweb.wsgi
WSGIDaemonProcess hgweb user='{{ hgweb_user }}' processes={{ hgweb_workers }}
# home=/home/{{ hgweb_user }}/hgwebfiles/
# group='{{ hgweb_user }}'
Alias /static/ /home/{{ hgweb_user }}/hg/mercurial/templates/static/
<Directory /home/{{ hgweb_user }}/hg/mercurial/templates/static>
Alias /robots.txt /home/{{ hgweb_user }}/hgwebfiles/robots.txt
<Directory /home/{{ hgweb_user }}/hgwebfiles>
Redirect 301 /favicon.ico /static/hgicon.png