]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/commitdiff
Add the HTTP Host: to the access_log record. Useful when using bucket based sub... 55/head
authorCraig Lewis <clewis@centraldesktop.com>
Wed, 31 Jul 2013 22:25:04 +0000 (15:25 -0700)
committerCraig Lewis <clewis@centraldesktop.com>
Thu, 1 Aug 2013 20:43:28 +0000 (13:43 -0700)
templates/default/rgw.conf.erb

index 10ab38f87683f1dfcef757c5147231553c5255d6..b87d511129b1e351d851da660cc115d13290ff57 100644 (file)
@@ -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
 
 <VirtualHost <%= node['ceph']['radosgw']['rgw_addr'] %>>
   ServerName <%= @params[:server_name] %>