Skip to content

Commit

Permalink
Merge branch 'master' of github.com:robertdebock/ansible-role-httpd
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Jan 31, 2021
2 parents 2e07747 + 7893dd6 commit 209b104
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ This example is taken from `molecule/resources/converge.yml` and is tested on ea
documentroot: /var/www/html/www1.example.com
- name: backend_http
servername: www2.example.com
serveralias:
- example.com
- special.com
backend_url: "http://www.example.com/"
serveralias:
- example.com
Expand Down
5 changes: 5 additions & 0 deletions templates/vhost.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@

<VirtualHost *:{{ httpd_port }}>
ServerName {{ item.servername }}

{% if item.serveralias is defined %}
ServerAlias {{ item.serveralias | join(' ') }}
{% endif %}

{% if item.options is defined %}
Options {{ item.options|join(' ') }}
{% endif %}
Expand Down

0 comments on commit 209b104

Please sign in to comment.