Kopano Webapp reverse Proxy Fail2Ban integration



  • Hello,
    we run the Kopan webapp and also Z-Push behind an Apache reverse proxy. Now I want to secure the Webapp and also Z-Push with Fail2Ban. The Apache proxy generates the correct http header “X-Forwarded-For”.
    With this logging setting

    "CustomLog /path/to/logs/access_log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\" \"[XF %{X-Forwarded-For}i]\""
    

    the Apache web server on Kopano server logs the “X-Forwarded-For” headers in the Apache access log. But login errors of the WebApp are logged in error_log by Apache.
    Unfortunately Fail2Ban need the login error and the correct IP address in one log file.
    Question: How do I get the WebApp login errors into the Apache access log?

    I am grateful for any help.


Log in to reply