diff options
| author | 2023-11-01 17:29:16 +0100 | |
|---|---|---|
| committer | 2023-11-01 17:29:16 +0100 | |
| commit | 0795d47d82391b6679605390d809b2dbe6bfc127 (patch) | |
| tree | 7657992e31c6e5c55b0a625432da1feb64705d9d /p | |
| parent | 3b408443be19b3fec766a1d14f6dbc31bb9c5434 (diff) | |
Fix Apache IfVersion (#5804)
* Fix Apache IfVersion
fix https://github.com/FreshRSS/FreshRSS/issues/5803
* Minor changelog
Diffstat (limited to 'p')
| -rw-r--r-- | p/.htaccess | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/p/.htaccess b/p/.htaccess index 7bf291557..70bc34710 100644 --- a/p/.htaccess +++ b/p/.htaccess @@ -37,15 +37,13 @@ AddDefaultCharset UTF-8 </IfModule> # Provide the true IP address of the connection (e.g. last proxy), even when using mod_remoteip -<IfModule mod_setenvif.c> - <IfVersion >= 2.4> - # If you run an old Apache 2.2-, disable mod_setenvif and enable mod_rewrite, or edit manually - SetEnvIfExpr "%{CONN_REMOTE_ADDR} =~ /(.*)/" CONN_REMOTE_ADDR=$1 - </IfVersion> +<IfModule mod_rewrite.c> + RewriteEngine on + RewriteRule .* - [E=CONN_REMOTE_ADDR:%{CONN_REMOTE_ADDR}] </IfModule> -<IfModule !mod_setenvif.c> - <IfModule mod_rewrite.c> - RewriteEngine on - RewriteRule .* - [E=CONN_REMOTE_ADDR:%{CONN_REMOTE_ADDR}] +<IfModule !mod_rewrite.c> + <IfModule mod_setenvif.c> + # If you run an old Apache 2.2-, disable mod_setenvif and enable mod_rewrite, or comment out next line + SetEnvIfExpr "%{CONN_REMOTE_ADDR} =~ /(.*)/" CONN_REMOTE_ADDR=$1 </IfModule> </IfModule> |
