From 19e0f115f0dcb82cbf2127a7ef8ee65159e08c54 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 12 Dec 2014 16:53:31 +0100 Subject: Add a custom vhost, with a hardocded name for now --- roles/cgit/tasks/main.yml | 3 +++ roles/cgit/templates/vhost.conf | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 roles/cgit/templates/vhost.conf diff --git a/roles/cgit/tasks/main.yml b/roles/cgit/tasks/main.yml index ea9972f..cdbaf6e 100644 --- a/roles/cgit/tasks/main.yml +++ b/roles/cgit/tasks/main.yml @@ -10,3 +10,6 @@ - copy: mode=0644 src=cgit.httpd.conf dest=/etc/httpd/conf.d/cgit.conf notify: restart httpd +# TODO clean once the mess with domain name is solved +- template: src=vhost.conf dest=/etc/httpd/conf.d/git.theopensourceway.org.conf + notify: restart httpd 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' %} + + + Alias /cgit-data /usr/share/cgit + ScriptAlias /cgit /var/www/cgi-bin/cgit + + RedirectMatch ^/$ /cgit/ + + # TODO clean it + ServerName git.theopensourceway.org + + +{% endfor %} -- cgit