mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-11-14 01:10:20 +01:00
547c0b404c
By default I leave it as "*", but for many cases, we don't want to bind our apache to all network addresses available for the server. For example if we want to only bind the apache to the localhost, we can use the following configuration: apache_listen_ip: "127.0.0.1"
19 lines
550 B
YAML
19 lines
550 B
YAML
---
|
|
apache_service: apache24
|
|
apache_daemon: httpd
|
|
apache_daemon_path: /usr/apache2/2.4/bin/
|
|
apache_server_root: /etc/apache2/2.4/
|
|
apache_conf_path: /etc/apache2/2.4/conf.d
|
|
|
|
apache_vhosts_version: "2.2"
|
|
|
|
__apache_packages:
|
|
- web/server/apache-24
|
|
- web/server/apache-24/module/apache-ssl
|
|
- web/server/apache-24/module/apache-security
|
|
|
|
apache_ports_configuration_items:
|
|
- regexp: "^Listen "
|
|
line: "Listen {{ apache_listen_port }}"
|
|
- regexp: "^#?NameVirtualHost "
|
|
line: "NameVirtualHost {{ apache_listen_ip }}:{{ apache_listen_port }}"
|