We use cookies to help us improve our webpage. Please read our Cookie Policy .

NAS 321

Hosting Multiple Websites with a Virtual Host

Hosting websites with the virtual host function and using DDNS service with ASUSTOR NAS

2022-07-13

COURSE OBJECTIVES

After completing this course you will be able to:

  1. Host websites on the ASUSTOR NAS using the virtual host function.
  2. Enable DDNS service for the ASUSTOR NAS.

PREREQUISITES

Course Prerequisites:
None

Students are expected to have a working knowledge of:
Hosting Websites


OUTLINE




1. Obtaining a Unique Hostname

You can host multiple websites on your ASUSTOR NAS by setting up virtual hosts. However, before setting up virtual hosts you should obtain a unique hostname for your ASUSTOR NAS either by registering for your own domain or by subscribing for DDNS service.


1.1 If you have a static IP address

If you have a static IP address, then you most likely will want to register for your own domain name. The company you register with will be able to provide DNS service for your unique hostname. You only need to provide them with your IP address and they will help you to map your hostname to your IP address.


1.2 If you have a dynamic IP address

If you have a dynamic IP address, then you may want to subscribe for free DDNS service in order to obtain a unique hostname for your ASUSTOR NAS. There are a number of companies offering free DDNS service. After registering with the company, you will be able to create a unique hostname and then have it mapped to your dynamic IP address. The company will periodically update your IP address in order to ensure that it is always mapped to your hostname.

After enabling the EZ-Connect service, ADM will enable the DDNS service of Your_Cloud_ID.myasustor.com. You can also apply for other DDNS services and connect to the NAS through this Domain name.




2. Hosting Websites Using the Virtual Host Function

ASUSTOR NAS supports virtual hosting for hosting multiple domain names on the NAS. In the following example we will walk you through the process of hosting a website using the virtual host function.


2.1 Enabling the Web server and adding a new virtual host (website)


STEP 1

  • In ADM click on [Web Center] [Web Server].
  • Select a web server package and PHP package.
  • Select [Enable Web server port] and [Enable secured Web server port].
  • Select [Also enable EZ-Connect port forwarding] and click on [Apply].


  • In order to check that the setting has been successfully applied, enter the ASUSTOR NAS's IP address into a Web browser and connect to it. You should be able to see the "Congratulations!" page as shown in the graphic below.

  • This page is located in the ASUSTOR NAS's [Web] shared folder. In order to host a website on the ASUSTOR NAS, you must upload it to the "Web" shared folder of the NAS.

STEP 2

  • Click on the Virtual Host and then click on the [Add].


STEP 3

  • The Virtual Host window will now appear. Fill out the required fields and then click [OK] once you are done. Your website should now be successfully hosted on the NAS.



2.2 Enabling DDNS service

If you have subscribed for DDNS service, you can also create a unique hostname to use with your NAS. In the following example we will walk you through the process of enabling DDNS service on the NAS.


STEP 1

  • In ADM click on [Settings] [Manual Connect] [DDNS].
  • Select [Enable DDNS service].
  • Select your DDNS provider from the drop-down list. You can choose to use the myasustor.com DDNS service if EZ-Connect service is enabled.
  • If you haven't signed up for DDNS service you can select a provider and then click on the [Sign up now] to register.
  • Fill out the rest of the required fields and then click on [Apply] once you are done. DDNS service should now be successfully enabled on the NAS.

Was this article helpful? Yes / No