About The Multi Store Configuration

From the official document, just says how to configure multi-store in cpanel, but if we don't use cpanel, like Amazon aws, then how to configure it ? The first domain name hosting by cloudfront,If I want to add another different domain name, then can not find any instructions,anyone can help ? Thanks !

The way it works is:

1) DNS directs name to an IP

2) Whatever webserver you're using (Apache, Ngix, etc.) translates that to a "document root" which is the root of your store.

3) If the domain doesn't match the primary domain, cs-cart will look through the "companies" and look for a "storefront url" that matches the request.

4) If found it uses that configuration, if not, it generates a 400 error (either 403 or 404 but that too is somewhat webserver dependent).

So you have to manage "the chain" of DNS -> webserver -> document root

The cpanel instructions just simplify this process because cpanel will handle the dns and webserver aspects for you.

The way it works is:

1) DNS directs name to an IP

2) Whatever webserver you're using (Apache, Ngix, etc.) translates that to a "document root" which is the root of your store.

3) If the domain doesn't match the primary domain, cs-cart will look through the "companies" and look for a "storefront url" that matches the request.

4) If found it uses that configuration, if not, it generates a 400 error (either 403 or 404 but that too is somewhat webserver dependent).

So you have to manage "the chain" of DNS -> webserver -> document root

The cpanel instructions just simplify this process because cpanel will handle the dns and webserver aspects for you.

Thanks for your reply, figured out.