Commit graph

17 commits

Author SHA1 Message Date
Jeff Geerling
f0499b207a PR #195 follow-up, fixes #224: Fix indentfirst argument. 2021-08-26 23:38:35 -05:00
Paul Gration
ea4f5da3a8 Fix vhosts extra_parameters indentation 2020-08-27 19:22:08 +01:00
maestrojed
b273bfb2c3 The documentroot paths for the vhosts were not encapsulated in quotes which would cause an apache error for paths with spaces or other restricted characters 2017-05-08 21:24:48 -04:00
Christoph Dittmann
b0d8061675 Make "AllowOverride" and "Options" configurable
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.
2016-04-26 10:56:36 +02:00
Christoph Dittmann
ae3a1a6332 Merge the templates for 2.2 and 2.4
The only real difference between apache version 2.2 and 2.4 are the
"Order/Allow" directives which have been replaced with "Require", so
there seems to be no need to maintain two separate templates.

As a side-effect, this merges geerlingguy/ansible-role-apache#69 into
the apache 2.2 config.
2016-04-25 18:29:26 +02:00
Adam Papai
547c0b404c
Add configuration for listen address
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"
2016-04-20 11:46:12 +02:00
Andreas Wolf
097ddd2eb4 Only create vHosts if certificate exists 2016-01-18 17:25:08 +01:00
Jeff Geerling
554c74730c Actually fixes #28: Allow for virtualhost without documentroot. 2016-01-02 22:46:25 -06:00
Jeff Geerling
2f9c001145 Fixes #28: Allow for virtualhost without documentroot. 2016-01-02 22:25:49 -06:00
Solomon Gifford
31fcb4859b rename apache_global_settings to apache_global_vhost_settings to avoid confusion of where the globals are placed part 3 2015-12-10 16:46:54 -05:00
Solomon Gifford
6584e7afb6 rename apache_global_settings to apache_global_vhost_settings to avoid confusion of where the globals are placed part 2 2015-12-10 16:40:51 -05:00
Teun Ouwehand
53990ee997 Add global config variable 2015-12-08 21:03:13 +01:00
Kevin ARBOUIN
c4b6fa8bb4 Add parameters ServerAlias 2014-12-29 21:56:03 +01:00
Jeff Geerling
8abd97bb32 Issue #17: SSL Support. 2014-11-05 10:07:20 -06:00
Jeff Geerling
3a277cbff6 Issue #1: Add updated vhosts file for Apache 2.4. 2014-10-05 18:15:56 -05:00
Jeff Geerling
5cbf84a9a5 Make Apache role work correctly with both RHEL and Debian. 2014-04-22 07:34:37 -05:00
Jeff Geerling
ca82309c13 Add handlers, meta info, tasks, templates, and vars. 2014-02-28 16:23:24 -06:00