diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-04-09 17:40:29 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-04-09 17:40:29 +0300 |
commit | 4d08363a3afd346e5715e4c411e4c939025ae966 (patch) | |
tree | 969a29ed28a7c85b47f9c689c80f63a49b7461e8 /roles/apt_repository/templates/apache-http.conf | |
parent | 7d06cfedf7c71909cbb801756e5db8c1d9cf2287 (diff) | |
download | ick2-ansible-4d08363a3afd346e5715e4c411e4c939025ae966.tar.gz |
Add: role for setting up a host with an APT repository
Diffstat (limited to 'roles/apt_repository/templates/apache-http.conf')
-rw-r--r-- | roles/apt_repository/templates/apache-http.conf | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/apt_repository/templates/apache-http.conf b/roles/apt_repository/templates/apache-http.conf new file mode 100644 index 0000000..bb2eb2e --- /dev/null +++ b/roles/apt_repository/templates/apache-http.conf @@ -0,0 +1,18 @@ +<VirtualHost _default_:80> + ServerAdmin {{ apt_admin_email }} + + DocumentRoot /srv/http + Alias "/debian" "/srv/apt" + + <Directory /srv/http> + Require all granted + </Directory> + + <Directory /srv/apt> + Options +Indexes + Require all granted + </Directory> + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined +</VirtualHost> |