Virtual Host
With the feature of Virtual Host, you can setup multiple web sites on Synology NAS. A domain name is required for Virtual Host set up. There are two different settings for each Virtual Host set up: Name-based and Port-based. Each Virtual Host web site requires a Document Root directory for file storing and accessing.
Add a new Virtual Host
- Click Create
- Select the type of Virtual Host: Name-based or Port-based.
- Enter the hostname and select the protocol and port number is necessary.
- Select the Document Root path, this folder will be used to file store. (Please refer to Note)
- Select whether or not to enable HSTS setting (forces browser to use HTTPS connection) and HTTP/2 to speed up the web transfer.
- Select the back-end server for this Virtual Host.
- Enable PHP back-end is necessary and choose the back-end type.
- Click OK to create the Virtual Host.
- When SSL encryption connect is enabled, you will be promoted and redirected to the Certificate page for further setup.
Note:
- For better flexibility and security, Web Station uses the http user group to execute tasks. Therefore, to control access permissions for your web pages, please change the http group's access permissions for each corresponding folder and file. For example, if you want to make the vhost1 folder accessiable via Web Station, you'll need to make sure the http group has proper read/write permissions for the vhost1 and files/folders in it.