When generating the RadosGW VHost, add support for optional ServerAliases.
Author: Craig Lewis <clewis@centraldesktop.com>
This commit is contained in:
parent
059e87d59b
commit
09d6da8e7c
@ -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/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user