9:855a89f33e5e default tip
Anton Shestakov <av6@dwimlabs.net>, Mon, 28 Sep 2020 21:30:03 +0800
hgweb: run on Python 3

previous change 7:e6345025463e

roles/hgweb/templates/etc/apache2/sites-available/hgweb.conf

Permissions: -rw-r--r--

Other formats: Feeds:
<VirtualHost *:80>
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
# LogLevel info
WSGIScriptAlias / /home/{{ hgweb_user }}/hgwebfiles/hgweb.wsgi
WSGIProcessGroup hgweb
WSGIDaemonProcess hgweb user='{{ hgweb_user }}' processes={{ hgweb_workers }}
# home=/home/{{ hgweb_user }}/hgwebfiles/
# group='{{ hgweb_user }}'
# maximum-requests=100
# umask=0027
Alias /static/ /home/{{ hgweb_user }}/hg/mercurial/templates/static/
<Directory /home/{{ hgweb_user }}/hg/mercurial/templates/static>
Options -Indexes
Require all granted
</Directory>
Alias /robots.txt /home/{{ hgweb_user }}/hgwebfiles/robots.txt
<Directory /home/{{ hgweb_user }}/hgwebfiles>
<Files hgweb.wsgi>
Require all granted
</Files>
<Files robots.txt>
Require all granted
</Files>
</Directory>
Redirect 301 /favicon.ico /static/hgicon.png
</VirtualHost>