If I'm using a sub-domain for my clients access to a web application (e.g.
client-x.example.com/admin/), and I want client's to optionally use their own domain (e.g.
client-x.com), do you think it is advisable to have them point their
www CNAME to
client-x.example.com/admin/ and forward all
http://www.client-x.com/ so that
client-x.com is always accessed via the
www version? I may need to offer SSL on their sub-domain as well as on their main domain.
Are there issues I should be concerned about with this simplified approach?
Also, will I be able to tell which sub-domain they're main domain is pointed to from my web server (NGINX), or will I have to create a table for domain-to-subdomain relationships?