mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-11-10 07:53:29 +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
|
@ -18,6 +18,12 @@ The repository to use when installing Apache (only used on RHEL/CentOS systems).
|
|||
|
||||
apache_listen_port: 80
|
||||
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.
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
---
|
||||
apache_enablerepo: ""
|
||||
|
||||
apache_global_settings: |
|
||||
DirectoryIndex index.php index.html
|
||||
|
||||
apache_listen_port: 80
|
||||
apache_listen_port_ssl: 443
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
DirectoryIndex index.php index.html
|
||||
{{ apache_global_settings }}
|
||||
|
||||
{# Set up VirtualHosts #}
|
||||
{% for vhost in apache_vhosts %}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
DirectoryIndex index.php index.html
|
||||
{{ apache_global_settings }}
|
||||
|
||||
{# Set up VirtualHosts #}
|
||||
{% for vhost in apache_vhosts %}
|
||||
|
|
Loading…
Reference in a new issue