Many SaaS apps allow users to host their websites under their root domain, e.g. GitHub allows you to host your sites using GitHub Pages under the
Here is a list of subdomains which you should reserve while building your own SaaS product.
I usually put this data in a /data/reserved_subdomains file and then use it like below:
class Site < ActiveRecord::Base