dev/provisioning/modules/apache/templates/mod/geoip.conf.erb
changeset 28 b0b56e0f8c7f
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
       
     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 ! @scan_proxy_header_field.nil? -%>
       
    20 GeoIPScanProxyHeaderField <%= @scan_proxy_header_field %>
       
    21 <% end -%>
       
    22 <% if ! @use_last_xforwarededfor_ip.nil? -%>
       
    23 GeoIPUseLastXForwardedForIP <%= scope.function_bool2httpd([@use_last_xforwarededfor_ip]) %>
       
    24 <% end -%>
       
    25