diff options
Diffstat (limited to 'p')
| -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> |
