Skip to content

Commit

Permalink
Update documentation and fix a few variables for vhosts configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Jan 10, 2015
1 parent 5d8bf8b commit 17a9908
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ The repository to use when installing Apache (only used on RHEL/CentOS systems).
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_vhosts_filename: "vhosts.conf"

If set to true, a vhosts file, managed by this role's variables (see below), will be created and placed in the Apache configuration folder. If set to false, you can place your own vhosts file into Apache's configuration folder and skip the convenient (but more basic) one added by this role.

apache_vhosts:
# Additional optional properties: 'serveradmin, extra_parameters'.
# Additional optional properties: 'serveradmin, serveralias, extra_parameters'.
- {servername: "local.dev", documentroot: "/var/www/html"}

Add a set of properties per virtualhost, including `servername` (required), `documentroot` (required), `serveradmin` (optional: the admin email address for this server), and `extra_parameters` (you can add whatever you'd like in here).
Add a set of properties per virtualhost, including `servername` (required), `documentroot` (required), `serveradmin` (optional), `serveralias` (optional) and `extra_parameters` (optional: you can add whatever additional configuration lines you'd like in here).

apache_vhosts_ssl: []

Expand All @@ -51,10 +52,6 @@ Other SSL directives can be managed with other SSL-related role variables.

The SSL protocols and cipher suites that are used/allowed when clients make secure connections to your server. These are secure/sane defaults, but for maximum security, performand, and/or compatibility, you may need to adjust these settings.

apache_vhosts_filename: 'vhosts.conf'

The filename used for the vhost configuration.

apache_mods_enabled:
- rewrite.load
- ssl.load
Expand Down
4 changes: 1 addition & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ apache_listen_port: 80
apache_listen_port_ssl: 443

apache_create_vhosts: true
apache_vhosts_filename: "vhosts.conf"

apache_vhosts:
# Additional properties: 'serveradmin, serveralias, extra_parameters'.
Expand All @@ -24,9 +25,6 @@ apache_vhosts_ssl: []
apache_ssl_protocol: "All -SSLv2 -SSLv3"
apache_ssl_cipher_suite: "AES256+EECDH:AES256+EDH"

apache_vhosts_version: "2.2"
apache_vhosts_filename: "vhosts.conf"

apache_mods_enabled:
- rewrite.load
- ssl.load

0 comments on commit 17a9908

Please sign in to comment.