《16_Host Multiple Websites on QNAP NAS by the Virtual Host Feature》.docx
文本预览下载声明
Host Multiple Websites on QNAP NAS by the Virtual Host Feature
Today, having a web presence to allow your users, customers or audience from anywhere in the world to interact with you or your company via the World Wide Web is essential. Hosting a website is not as difficult as before and with plenty of free resources on the Internet, setting up multiple website are not limited to the professionals and can be only a few clicks away.
Virtual Host is a web server technique that provides the capability to host more than one domain (website) on one physical host offers a cost-effective solution for personal and small business with such need.
QNAP NAS supports virtual hosting and this article will show you how to set up multiple websites on QNAP NAS by using virtual host. Read on.
In this tutorial we will use the information provided in the table below as the reference guide.
Host nameWAN/LAN IP portDocument rootDemo web applicationWAN IP: 111.222.333.444LAN IP: 5 (NAS)Port: 80 (NAS)/Web/site1_mysiteJoomla!/Web/site2_mysiteWordPress/Web/www_mysite2phpBB3Before you start
Before you start, please make sure you have checked the following items:
DNS records
The host name must point to the WAN IP of your NAS and you can normally configure this from your DNS service providers.
Port forwarding
If the web server listens on port 80 you need to configure port forwarding on your router to allow inbound traffic from port 80 to the LAN IP (5) of your NAS.
SSL certificate import
If you are going to enable SSL connection for the website and intend to use your own trusted SSL certificates you may import the certificate from within the administration backend under System Administration Security Import SSL Secure Certificate.
Activate the Web Server and Configure the Virtual Host Function
Login the administration page and then go to Network Services Web Server. Check the box Enable Web server and click Apply.
Next go to the Virtual Host tab and check the box Enable
显示全部