File: geoip.conf.epp

package info (click to toggle)
puppet-module-puppetlabs-apache 12.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,664 kB
  • sloc: ruby: 275; sh: 32; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 872 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
GeoIPEnable <%= apache::bool2httpd($enable) %>

<%- if $db_file and !($db_file in [ false, 'false', '' ]) { -%>
    <%- if String(type($db_file, 'generalized')).index('Array') == 0 { -%>
      <%- Array($db_file).each |$file| { -%>
GeoIPDBFile <%= $file %> <%= $flag %>
      <%- } -%>
    <%- } else { -%>
GeoIPDBFile <%= $db_file %> <%= $flag %>
    <%- } -%>
<%- } -%>
GeoIPOutput <%= $output %>
<% if $enable_utf8 != undef { -%>
GeoIPEnableUTF8 <%= apache::bool2httpd($enable_utf8) %>
<% } -%>
<% if $scan_proxy_headers != undef { -%>
GeoIPScanProxyHeaders <%= apache::bool2httpd($scan_proxy_headers) %>
<% } -%>
<% if $scan_proxy_header_field != undef { -%>
GeoIPScanProxyHeaderField <%= $scan_proxy_header_field %>
<% } -%>
<% if $use_last_xforwarededfor_ip != undef { -%>
GeoIPUseLastXForwardedForIP <%= apache::bool2httpd($use_last_xforwarededfor_ip) %>
<% } -%>