add ranges to template and update Readme

This commit is contained in:
2026-03-14 15:09:28 +01:00
parent c6e13a366c
commit 54b1322717
3 changed files with 22 additions and 11 deletions

View File

@@ -3,10 +3,17 @@
########## manual changes will be overwritten !!! ##########
###############################################################################
RemoteIPHeader X-Forwarded-For
RemoteIPTrustedProxy <%= @ae_trusted_proxy %>
RemoteIPInternalProxy <%= @ae_trusted_proxy %>
<IfModule remoteip_module>
RemoteIPHeader <%= @remoteip_header %>
<% @trusted_proxies.each do |proxy| -%>
RemoteIPTrustedProxy <%= proxy %>
<% end -%>
<% @internal_proxies.each do |proxy| -%>
RemoteIPInternalProxy <%= proxy %>
<% end -%>
# Use real client IP in all standard log formats
LogFormat "%a %l %u %t \"%r\" %>s %b" common
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
</IfModule>
# mod_remoteip rewrites client address for %a; use it in common/combined logs.
LogFormat "%a %l %u %t \"%r\" %>s %b" common
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined