adapt captiveportal apache conf to 2.4