]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/apache/templates/mod/geoip.conf.erb
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / templates / mod / geoip.conf.erb
1 GeoIPEnable <%= scope.function_bool2httpd([@enable]) %>
2
3 <%- if @db_file and ! [ false, 'false', '' ].include?(@db_file) -%>
4     <%- if @db_file.kind_of?(Array) -%>
5       <%- Array(@db_file).each do |file| -%>
6 GeoIPDBFile <%= file %> <%= @flag %>
7       <%- end -%>
8     <%- else -%>
9 GeoIPDBFile <%= @db_file %> <%= @flag %>
10     <%- end -%>
11 <%- end -%>
12 GeoIPOutput <%= @output %>
13 <% if ! @enable_utf8.nil? -%>
14 GeoIPEnableUTF8 <%= scope.function_bool2httpd([@enable_utf8]) %>
15 <% end -%>
16 <% if ! @scan_proxy_headers.nil? -%>
17 GeoIPScanProxyHeaders <%= scope.function_bool2httpd([@scan_proxy_headers]) %>
18 <% end -%>
19 <% if ! @use_last_xforwarededfor_ip.nil? -%>
20 GeoIPUseLastXForwardedForIP <%= scope.function_bool2httpd([@use_last_xforwarededfor_ip]) %>
21 <% end -%>
22