AppFog offers two ways to add custom domain names to your app: through the app console and with the
af command line tool.
Once you've finished adding the domain to your app in one of those two ways, you'll need to change your DNS settings at your DNS host.
Head over to the app console and click on your app.
Click on the "Domain Names" tab on the left.
Add your custom domain name in the field and hit the "Update" button.
If you haven't already, install the af command line tool and log in.
Map the domain.
$ af map
$ af map exampleapp www.example.com
Note: If you intend to use SSL with your site, STOP HERE and go check out our SSL for Custom Domains documentation. It includes information on the different DNS configuration needed for SSL Endpoint termination.
We recommend using the
www. subdomain as your canonical domain. Here's how to do that:
Redirect Your Root Domain
At your DNS host, set up a redirect (302) from your root domain (
This is a fairly standard tool that DNS services provide. If you don’t see an option for it at your domain host, contact their support services and they should be able to do that for you.
Create a CNAME Alias
Depending on which infrastructure your app is running on, create a CNAME alias record for
AWS US East:
AWS Europe West:
AWS Asia Southeast:
HP Openstack AZ 2:
That's it! DNS propagation can take anywhere from a few minutes to 48 hours dep ending on your location, but once that's finished your app should resolve at your new custom domain.