1 2 3 4 5 6 7 8 9 10 11 12 13
# {{ ansible_managed }} {% for i in '80', '443' %} <VirtualHost *:{{ i }}> Alias /cgit-data /usr/share/cgit ScriptAlias /cgit /var/www/cgi-bin/cgit RedirectMatch ^/$ /cgit/ ServerName git.{{ ansible_domain }} </VirtualHost> {% endfor %}