Modified for using in Apache2.4 (using namebased virtualhost)