Fixes on apache2 backend