diff options
author | Michael Scherer <misc@zarb.org> | 2014-12-12 16:53:31 +0100 |
---|---|---|
committer | Michael Scherer <misc@zarb.org> | 2014-12-12 16:53:31 +0100 |
commit | 19e0f115f0dcb82cbf2127a7ef8ee65159e08c54 (patch) | |
tree | cbf8621028222c060daf0e2e54dbaf940bcc60d3 /roles/cgit/templates | |
parent | 491c6c291e2da69ec65d88f78b76e725ad573d5a (diff) |
Add a custom vhost, with a hardocded name for now
Diffstat (limited to 'roles/cgit/templates')
-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 %} |