mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-11-09 15:33:30 +01:00
Allowing the default vhost to be removed. Causes issues because it is linked to port 80, even if you change apache_listen_port
This commit is contained in:
parent
2abee5155c
commit
8e71d656f4
4 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,7 @@ apache_enablerepo: ""
|
|||
apache_listen_port: 80
|
||||
apache_listen_port_ssl: 443
|
||||
|
||||
apache_remove_default_vhost: false
|
||||
apache_create_vhosts: true
|
||||
apache_vhosts_filename: "vhosts.conf"
|
||||
|
||||
|
|
|
@ -32,3 +32,9 @@
|
|||
dest: "{{ apache_conf_path }}/sites-enabled/{{ apache_vhosts_filename }}"
|
||||
state: link
|
||||
when: apache_create_vhosts
|
||||
|
||||
- name: Remove default vhost symlink in sites-enabled.
|
||||
file:
|
||||
path: "{{ apache_conf_path }}/sites-enabled/{{ apache_default_vhost_filename }}"
|
||||
state: absent
|
||||
when: apache_remove_default_vhost
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
apache_vhosts_version: "2.2"
|
||||
apache_default_vhost_filename: 000-default
|
||||
apache_ports_configuration_items:
|
||||
- {
|
||||
regexp: "^Listen ",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
apache_vhosts_version: "2.4"
|
||||
apache_default_vhost_filename: 000-default.conf
|
||||
apache_ports_configuration_items:
|
||||
- {
|
||||
regexp: "^Listen ",
|
||||
|
|
Loading…
Reference in a new issue