diff options
Diffstat (limited to 'roles/cgit/templates/vhost.conf')
-rw-r--r-- | roles/cgit/templates/vhost.conf | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/cgit/templates/vhost.conf b/roles/cgit/templates/vhost.conf new file mode 100644 index 0000000..bf9a536 --- /dev/null +++ b/roles/cgit/templates/vhost.conf @@ -0,0 +1,13 @@ +{% for i in '80', '443' %} +<VirtualHost *:{{ i }}> + + Alias /cgit-data /usr/share/cgit + ScriptAlias /cgit /var/www/cgi-bin/cgit + + RedirectMatch ^/$ /cgit/ + + # TODO clean it + ServerName git.theopensourceway.org + +</VirtualHost> +{% endfor %} |