diff options
| author | 2023-10-31 12:27:32 +0100 | |
|---|---|---|
| committer | 2023-10-31 12:27:32 +0100 | |
| commit | 0234f4e40b961b85d6d79afad1b9ccd78c4c4ce8 (patch) | |
| tree | b8f7a9cd9df34b86f3adb427fe51773b0c3e4fb1 /p/.htaccess | |
| parent | 6fd1195f9502a45fa33982fa6dcd7a92518a44bd (diff) | |
Document Apache 2.4+ (#5791)
And avoid crash in Apache 2.2 anyway
fix https://github.com/FreshRSS/FreshRSS/issues/5790
Diffstat (limited to 'p/.htaccess')
| -rw-r--r-- | p/.htaccess | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/p/.htaccess b/p/.htaccess index 955b0c59d..7bf291557 100644 --- a/p/.htaccess +++ b/p/.htaccess @@ -38,7 +38,10 @@ AddDefaultCharset UTF-8 # Provide the true IP address of the connection (e.g. last proxy), even when using mod_remoteip <IfModule mod_setenvif.c> - SetEnvIfExpr "%{CONN_REMOTE_ADDR} =~ /(.*)/" CONN_REMOTE_ADDR=$1 + <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> <IfModule !mod_setenvif.c> <IfModule mod_rewrite.c> |
