From 48cf86eaecf24aa2d04ffeb0243e06ec9524cb2e Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 5 Jun 2026 13:26:16 +0200 Subject: [PATCH] Apache condition mod_remoteip (#8890) Fix https://github.com/FreshRSS/FreshRSS/issues/8887 Follow-up of https://github.com/FreshRSS/FreshRSS/pull/5549 --- p/.htaccess | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/p/.htaccess b/p/.htaccess index f6216a439..c9d32299e 100644 --- a/p/.htaccess +++ b/p/.htaccess @@ -46,14 +46,16 @@ AddDefaultCharset UTF-8 -# Provide the true IP address of the connection (e.g. last proxy), even when using mod_remoteip - - RewriteEngine on - RewriteRule .* - [E=CONN_REMOTE_ADDR:%{CONN_REMOTE_ADDR}] - - - - SetEnvIfExpr "%{CONN_REMOTE_ADDR} =~ /(.*)/" CONN_REMOTE_ADDR=$1 + + # Provide the true IP address of the connection (e.g. last proxy), even when using mod_remoteip + + RewriteEngine on + RewriteRule .* - [E=CONN_REMOTE_ADDR:%{CONN_REMOTE_ADDR}] + + + + SetEnvIfExpr "%{CONN_REMOTE_ADDR} =~ /(.*)/" CONN_REMOTE_ADDR=$1 +