mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-11-14 01:10:20 +01:00
Merge pull request #56 from Nextpertise/master
Add global config variable
This commit is contained in:
commit
7f9f793191
4 changed files with 11 additions and 4 deletions
|
@ -19,6 +19,12 @@ The repository to use when installing Apache (only used on RHEL/CentOS systems).
|
||||||
apache_listen_port: 80
|
apache_listen_port: 80
|
||||||
apache_listen_port_ssl: 443
|
apache_listen_port_ssl: 443
|
||||||
|
|
||||||
|
This role doesn't manage the apache configuration files (yet), however you can set/overwrite apache config inside the vhost file but outside the VirtualHost config. In order to do this change the `apache_global_settigs` variable.
|
||||||
|
|
||||||
|
apache_global_settigs: |
|
||||||
|
DirectoryIndex index.php index.html
|
||||||
|
# Other apache global settings
|
||||||
|
|
||||||
The ports on which apache should be listening. Useful if you have another service (like a reverse proxy) listening on port 80 or 443 and need to change the defaults.
|
The ports on which apache should be listening. Useful if you have another service (like a reverse proxy) listening on port 80 or 443 and need to change the defaults.
|
||||||
|
|
||||||
apache_create_vhosts: true
|
apache_create_vhosts: true
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
---
|
---
|
||||||
apache_enablerepo: ""
|
apache_enablerepo: ""
|
||||||
|
|
||||||
|
apache_global_settings: |
|
||||||
|
DirectoryIndex index.php index.html
|
||||||
|
|
||||||
apache_listen_port: 80
|
apache_listen_port: 80
|
||||||
apache_listen_port_ssl: 443
|
apache_listen_port_ssl: 443
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
|
{{ apache_global_settings }}
|
||||||
DirectoryIndex index.php index.html
|
|
||||||
|
|
||||||
{# Set up VirtualHosts #}
|
{# Set up VirtualHosts #}
|
||||||
{% for vhost in apache_vhosts %}
|
{% for vhost in apache_vhosts %}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
|
{{ apache_global_settings }}
|
||||||
DirectoryIndex index.php index.html
|
|
||||||
|
|
||||||
{# Set up VirtualHosts #}
|
{# Set up VirtualHosts #}
|
||||||
{% for vhost in apache_vhosts %}
|
{% for vhost in apache_vhosts %}
|
||||||
|
|
Loading…
Reference in a new issue