secured the setup_apache_vhost function