dev/provisioning/modules/apache/templates/mod/geoip.conf.erb
author ymh <ymh.work@gmail.com>
Fri, 15 Jan 2016 15:35:00 +0100
changeset 28 b0b56e0f8c7f
permissions -rw-r--r--
Add contributor edition - added viaf resolver - improve contributors list display - add update of document objects - propagate update to back office - update back office - add bo-client to back office - setup language initializer - add options mechanism - add language information in language list - add lexvo resolver service + api - add language and lexvo resolver to js app - correct env template - refresh bootstrap - download google font - add version information - update dev virtual machine to centos7 - add a readme + clean folders - add local .env file to start commands

GeoIPEnable <%= scope.function_bool2httpd([@enable]) %>

<%- if @db_file and ! [ false, 'false', '' ].include?(@db_file) -%>
    <%- if @db_file.kind_of?(Array) -%>
      <%- Array(@db_file).each do |file| -%>
GeoIPDBFile <%= file %> <%= @flag %>
      <%- end -%>
    <%- else -%>
GeoIPDBFile <%= @db_file %> <%= @flag %>
    <%- end -%>
<%- end -%>
GeoIPOutput <%= @output %>
<% if ! @enable_utf8.nil? -%>
GeoIPEnableUTF8 <%= scope.function_bool2httpd([@enable_utf8]) %>
<% end -%>
<% if ! @scan_proxy_headers.nil? -%>
GeoIPScanProxyHeaders <%= scope.function_bool2httpd([@scan_proxy_headers]) %>
<% end -%>
<% if ! @scan_proxy_header_field.nil? -%>
GeoIPScanProxyHeaderField <%= @scan_proxy_header_field %>
<% end -%>
<% if ! @use_last_xforwarededfor_ip.nil? -%>
GeoIPUseLastXForwardedForIP <%= scope.function_bool2httpd([@use_last_xforwarededfor_ip]) %>
<% end -%>