changing from hardcoded server to vhost template