mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-06-10 16:45:14 -04:00
Apache condition mod_remoteip (#8890)
Fix https://github.com/FreshRSS/FreshRSS/issues/8887 Follow-up of https://github.com/FreshRSS/FreshRSS/pull/5549
This commit is contained in:
committed by
GitHub
parent
10a976efbe
commit
48cf86eaec
18
p/.htaccess
18
p/.htaccess
@@ -46,14 +46,16 @@ AddDefaultCharset UTF-8
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
|
||||
# Provide the true IP address of the connection (e.g. last proxy), even when using mod_remoteip
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine on
|
||||
RewriteRule .* - [E=CONN_REMOTE_ADDR:%{CONN_REMOTE_ADDR}]
|
||||
</IfModule>
|
||||
<IfModule !mod_rewrite.c>
|
||||
<IfModule mod_setenvif.c>
|
||||
SetEnvIfExpr "%{CONN_REMOTE_ADDR} =~ /(.*)/" CONN_REMOTE_ADDR=$1
|
||||
<IfModule mod_remoteip.c>
|
||||
# Provide the true IP address of the connection (e.g. last proxy), even when using mod_remoteip
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine on
|
||||
RewriteRule .* - [E=CONN_REMOTE_ADDR:%{CONN_REMOTE_ADDR}]
|
||||
</IfModule>
|
||||
<IfModule !mod_rewrite.c>
|
||||
<IfModule mod_setenvif.c>
|
||||
SetEnvIfExpr "%{CONN_REMOTE_ADDR} =~ /(.*)/" CONN_REMOTE_ADDR=$1
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user