When generating the RadosGW VHost, add support for optional ServerAliases.

Author:    Craig Lewis <clewis@centraldesktop.com>
This commit is contained in:
Craig Lewis 2013-07-31 15:19:34 -07:00 committed by Alexandre Marangone
parent 059e87d59b
commit 09d6da8e7c

View File

@ -9,6 +9,11 @@ LogFormat "%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{Use
<VirtualHost <%= node['ceph']['radosgw']['rgw_addr'] %>>
ServerName <%= @params[:server_name] %>
<% if node['ceph']['radosgw']['api_aliases'] -%>
<% node['ceph']['radosgw']['api_aliases'].each do |api_alias| -%>
ServerAlias <%= api_alias %>
<% end -%>
<% end -%>
ServerAdmin <%= node["ceph"]["radosgw"]["admin_email"] %>
DocumentRoot /var/www/