1

If I want a multi-tenant environment where customers can create subdomains, what are the pros and cons of creating those subdomains under myexample.com if my main company domain is example.com?

I noticed that Shopify uses myshopify.com under which their create subdomains for their customers.

Gezim
  • 7,112
  • 10
  • 62
  • 98

2 Answers2

3

Coupled with the fact that this is better for security,, it certainly appears that there's a pattern and good reason why companies do this.

Here are some examples:

Also this article points out the issue with untrusted content (as is the case with Shopify:

Although cookie domains do help to limit the scope of your cookies, it is still best to avoid having untrusted hosts under your domain. This is why GitHub pages are hosted under github.io, not github.com, for example.

Gezim
  • 7,112
  • 10
  • 62
  • 98
0

I suspect the web domain name prefixed by 'my' is purly emotional rather than technical. It's in the back-end that the domains need to be different, as a resource for enforcing security. There needs to be at least a production and an internal domain. A full suite might be Dev, DevQA, UAT, production and internal domains, with a limited number of people being able to transfer code and/or data across domains.

Robert Howe
  • 314
  • 1
  • 11