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

NAS 321

Hosting Multiple Websites with a Virtual Host

Learn about hosting websites with the virutal host function and using DDNS service with your NAS.

2016-07-12

COURSE OBJECTIVES
Upon completion of this course you should 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
1.1 If you have a static IP address
1.2 If you have a dynamic IP address
2. Hosting Websites Using the Virtual Host Function
2.1 Enabling the Web server and adding a new virtual host (website)
2.2 Enabling DDNS service



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. However, in our example we have decided to use no-ip.com. 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.



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

Select [Services] → [Web Server]. Select the [Enable Web server] checkbox found under the Web Server heading and then click [Apply].




STEP 2

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 3

Now click on the Virtual Host tab and then click on the [Add] button.




STEP 4

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

ü Select [Settings] > [Ease of Access] and then click on the [DDNS] tab.

ü Select the [Enable DDNS service] checkbox.

ü Select your DDNS provider from the drop-down list. If you haven’t signed up for DDNS service you can select a provider and then click on the Sign up now link 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