using public_hostname with CNAME when in ec2 environment