dev/provisioning/modules/apache/templates/mod/remoteip.conf.erb
author Chloe Laisne <chloe.laisne@gmail.com>
Fri, 01 Jul 2016 22:15:35 +0200
changeset 215 82878d132784
parent 28 b0b56e0f8c7f
permissions -rw-r--r--
Play/Pause/Reset events from player/playlist-components Add title over visu-chrono

# Declare the header field which should be parsed for useragent IP addresses
RemoteIPHeader <%= @header %>

<%- if @proxy_ips -%>
# Declare client intranet IP addresses trusted to present
# the RemoteIPHeader value
<%-   [@proxy_ips].flatten.each do |proxy| -%>
RemoteIPInternalProxy <%= proxy %>
<%-   end -%>
<%- end -%>

<%- if @proxies_header -%>
# Declare the header field which will record all intermediate IP addresses
RemoteIPProxiesHeader <%= @proxies_header %>
<%- end -%>

<%- if @trusted_proxy_ips -%>
# Declare client intranet IP addresses trusted to present
# the RemoteIPHeader value
  <%- [@trusted_proxy_ips].flatten.each do |proxy| -%>
RemoteIPTrustedProxy <%= proxy %>
  <%- end -%>
<%- end -%>