This is a tutorial for people who already know CouchDB and have their couchapps inside the database.
without vhosts, you reference your apps via this URL scheme:
https://myaccount.cloudant.com/mydatabase/_design/app/index.html
If you want the app to show up like this:
https://www.mysite.com/index.html
here are the instructions (specific to Cloudant.com):
1. create a CNAME on your DNS server:
www.mysite.com. CNAME myaccount.cloudant.com.
2. map the CNAME to your app’s design design document’s rewrite rules
visit:
https://cloudant.com/dashboard/#!/dashboard/vhosts
and create an entry that looks like this:
www.mysite.com -> myaccount.cloudant.com /mydatabase/_design/app/_rewrite
3. create rewrite rules that look like this:
[ {"from": "/","to": "/index.html"}, {"from": "/*","to": "/*" } ]