Current vhosts defenition limit them to listen only on single IP/port.
In the meanwhile, there are usecases where vhosts on the same server
might wanna listen on different quite independent set of IPs/ports,
which is not currently possible.
This patch adds such functionality, and an operator might define
extra properties for apache_vhosts to make them listening on required
ports/interfaces.
This commit allows the user to change the "AllowOverride" and "Options"
directives of the documentroot directory for different vhosts.
The default values are "AllowOverride All" and "Options -Indexes
+FollowSymLinks" (see defaults/main.yml), so this commit is fully
backwards compatible.
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"
The variable apache_mods_enabled was always overridden by
vars/Debian.yml. It should be placed in defaults/main.yml
instead so the user's changes take effect as specied in the
README.
Also deleted superfluous files defaults/Debian.yml,
defaults/RedHat.yml and vars/main.yml. The former two were
never read and the contents of the latter one should be placed
in defaults/main.yml.