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」