projects
/
ansible.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ed68e5
)
adjust default host settings
author
Ralf Jung
<post@ralfj.de>
Wed, 27 May 2020 17:14:26 +0000
(19:14 +0200)
committer
Ralf Jung
<post@ralfj.de>
Wed, 27 May 2020 17:14:26 +0000
(19:14 +0200)
roles/apache/templates/000-default.conf
patch
|
blob
|
history
diff --git
a/roles/apache/templates/000-default.conf
b/roles/apache/templates/000-default.conf
index 0d68ad61f1da6c9b397db3f119599507670aafe7..5e02d0b3af4c02555d0659c4e21039b92fa9063a 100644
(file)
--- a/
roles/apache/templates/000-default.conf
+++ b/
roles/apache/templates/000-default.conf
@@
-1,14
+1,8
@@
-#
redirect all undefined virtual hosts to {{ apache.default_host }}
+#
Default host: serve nothing.
<VirtualHost *:80>
<VirtualHost *:80>
-{% if 'letsencrypt' in group_names %}
- Redirect temp / https://{{ apache.default_host }}/
-{% else %}
- Redirect temp / http://{{ apache.default_host }}/
-{% endif %}
</VirtualHost>
{% if 'letsencrypt' in group_names %}
<VirtualHost *:443>
Use SSL letsencrypt/live
</VirtualHost>
{% if 'letsencrypt' in group_names %}
<VirtualHost *:443>
Use SSL letsencrypt/live
- Redirect temp / https://{{ apache.default_host }}/
</VirtualHost>
{% endif %}
</VirtualHost>
{% endif %}