From: Craig Lewis Date: Wed, 31 Jul 2013 22:25:04 +0000 (-0700) Subject: Add the HTTP Host: to the access_log record. Useful when using bucket based sub... X-Git-Tag: v0.2.0~23^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F55%2Fhead;p=ceph-cookbooks.git Add the HTTP Host: to the access_log record. Useful when using bucket based sub-domains. --- diff --git a/templates/default/rgw.conf.erb b/templates/default/rgw.conf.erb index 10ab38f..b87d511 100644 --- a/templates/default/rgw.conf.erb +++ b/templates/default/rgw.conf.erb @@ -4,8 +4,8 @@ FastCgiExternalServer /var/www/s3gw.fcgi -host 127.0.0.1:<%= node['ceph']['rados FastCgiExternalServer /var/www/s3gw.fcgi -socket /var/run/ceph/radosgw.<%= node['hostname'] %> <% end -%> -LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" proxy_combined -LogFormat "%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" proxy_debug +LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" \"%{Host}i\"" proxy_combined +LogFormat "%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" \"%{Host}i\"" proxy_debug > ServerName <%= @params[:server_name] %>