How to realize multistore in Windows Azure Websites (nopCommerce ver3.1 )

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
This is an explanation of how to realize multistore nopCommerce on Windows Azure Websites.

As a prerequisite, please refer to the following pages.

http://www.windowsazure.com/en-us/develop/net/common-tasks/custom-dns/


There are 4 major steps to realize it.

A. If your website mode is free mode, it is necessary to upgrade it to "Shared" mode in azure website page. And check your A Record IP address.
B. In your DNS registrar site, set A Record and CNAME .
C. Register your second host in the Azure Management Portal.
D. Register your second host in the nopCommerce Administration page.

[A. Upgrade the website mode to "Shared"]

Visit the following page and login.

http://manage.windowsazure.com

1. Select "Web Sites" on the left menu.
2. Select your target website.
3. Select "Configure" on the top menu.
4. Change the website mode to "Shared" in the general selection (Note!!: This mode is not free of charge).
5. Click "Save" button.
6. If the configuration is successfully completed, "MANAGE DOMAINS" button in the bottom will be active (Or some alternative button will be shown in the middle).
7. Click the button. The domain name dialog box will be shown. Copy the IP Address for A Record which is displayed in the bottom of the dialog.

[B. In your DNS registrar site, set A record and CNAME]
1. Log on to your DNS registrar's web site and go to the page for managing DNS.
2. Set A Record and CNAME. For example, if your second domain name is "yoursecond.com" and the host name (which you really installed nopCommerce) is "yourstore.azurewebsites.net", set them as follows.

  (Alias)            (TTL)        (Type)        (Value)
www                 7200          A          XXX.XXX.XXX.XXX (<- Copied IP Address in A.7 above)
awverify.www   86400      CNAME     awverify.yourstore.azurewebsites.net

(Note) CNAME -- Canonial NAME
           TTL   -- Time To Live
  In the setting above, you can use mail server, ftp server etc of your DNS registrar site as before. It has some advantages because the mail from Azure server has restrictions.

[C. Register your second host in the Azure Management Portal]

Visit again  Windows Azure Management Portal.

http://manage.windowsazure.com

1. Select "Web Sites" on the left menu.
2. Select your target website.
3. Select "Configure" on the top menu.
4. Click "MANAGE DOMAINS" button. If the domain name dialog box is  shown, input your second host name (eg. "www.yoursecond.com"). If Azure can recognize the host successfully, a green check icon will be displayed in the right.
5. Click "Save" button in the bottom of the dialog.

[D. Register your second host in the nopCommerce Administration page]

In the administration page of nopCommerce which you installed in Azure Websites, follow these steps.

1. Click "Configuration" --> "Stores" in the menu.
2. In "Stores" page, click "Add new" button.
3. Input the following items.
   Store name : This name is used in the selection of store. (eg. www.yoursecond.com)
   Store URL  : eg. http://www.yoursecond.com
   SSL enabled: Check if SSL is available
   HOST values: HTTP_POST values which are used for recognition of the host in nopCommerce. (eg. www.yoursecond.com)
   (Note: In the setting above, IP Adresses of "yoursecond.com" and "www.yoursecond.com" are different. So in this setting, "yoursecond.com" should not be included)
   Display order: Display order in the menus.
4. Click "Save" button in the top right.


Following the steps above, you can realize multistore in Windows Azure Websites.

日本語を理解できる方でしたら、以下の書籍でさらに詳しい解説を参照することもできます。
入門 日本語nopCommerce3.1
10 years ago
Very well laid out. Thank you very much Ohtsu.
8 years ago
Step 2 seems incomplete. It mentions yoursecond.com, but says nothing about that in the records. Is the guide still correct? Im having a hard time getting my 2nd store to work with another language.

vitagile.no \ vitagile.se

If you are familiar with google dig tool you can see how ive done the records there. Anything wrong?

https://toolbox.googleapps.com/apps/dig/
5 years ago
You use a simple F1 web app service and add an instance to it?  I dont think it's necessary to upgrade to any specific plan.  Shared services are the cheapest.  My dev site is free as long as I dont go over the max compute for the app service.

The home directory contains an app's content, and application code can write to it. If an app runs on multiple instances, the home directory is shared among all instances so that all instances see the same directory. So, if an app saves uploaded files to the home directory, those files are immediately available to all instances.

you can save money by hosting multiple apps in one app service plan and if you scale this plan to 2 instances, and you have 2 web sites running, they will both run on both instances.

Check the below SO link which may help

https://stackoverflow.com/questions/40579661/how-scale-out-work-in-azure-app-services/40579690

Also suggest you check the below link for more information on Azure App service plans and pricing

https://blog.siliconvalve.com/2016/05/12/understanding-azure-app-service-plans-and-pricing/
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.