add ranges to template and update Readme
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user