Now lets say I want to buy a couple of domain names and make them point on my vhosts. A domain name is required for virtual host setup.
WebStation is the name of the Synology web server.
Synology web server virtual host. The hostname specified in requests. Each virtual host can be either Name-based or Port-based. Most of the articles on the web were explaining to build a testing environment for local use only.
Include any and all folders and files your application needs. Web services was always easy to install on macOS Server and its no different on a Synology. Continue reading Install Web Services on a Synology.
If you want to create name-based virtual hosts for example to actually host multiple websites on your Synology the process is similar to the port-based approach. With the support of PHP and MySQL users can develop a dynamic data-base driven website by themselves or install a variety of open-sourced programs on their Synology NAS server. Install the Web Station package from Synologys Package Center.
Click Open once the install is finishedClick General Settings. This installs a few dependencies. Open the Web Station package and select Virtual Host.
In this video How To Host Your Own Website On Synology I show the steps needed to host your very own website on a Synology NASPlease share this video – ht. So Im not sure if I can host multiple websites online with one DS unit. Creating a virtual machine on a Synology NAS In Virtual Machine Manager click on Virtual Machine then click on Create.
At this point we need to flip back to the Synology web interface so we can configure a new virtual host in Web Station. With virtual hosts you can set up multiple websites on Synology NAS. From here click on the Create button to setup a new virtual host.
Each virtual host website requires a Document root directory for file storing and accessing. Hostname should be your websites root domain. Now configure the name and specs of your new virtual machine.
Currently each vhost is associated with a different port and my router is pointing on them individually. Within that folder youll have these sub-folder pointers. Open up the Web Station application and click on the Virtual Hosts tab.
The Virtual Host feature allows you to host up to 30 websites using Web Station with PHP and MySQL supported. I also have a static IP address. The Web Station package stores the configuration json files in this folder.
I have a Synology NAS running an Apache web server with several Virtual Hosts. DSMs nginx UI Webstation The current nginx instance runs with the config files it finds under etcnginx. Select Apache HTTP server.
With it you can host on your server dynamic websites using for example the programming language php. Once in your Synology navigate to your web station. Im using DSM 61 on a DS916 and I have installed and configured web station and DNS server.
What I plan to do is. All that is left is to populate your application into the web server directory as specified in the Virtual Host definition in my case servicehistory. Select the Name-based option.
In this example Im going to use the nextcloudkevswebdev sub-domain. Next select Create the virtual machine with ISO file and click on Next. To do so open Package Manager from the home screenClick All in the sidebar and enter web into the search boxClick Web StationClick Install.
Now login your Synology we are going to configure a virtual host. Browse to your web folder and the site you want to map with the new domain. And follow these steps.
Any advise is appreciated. Installing WebStation will be required if you plan to install applications like phpMyAdmin WordPress french post or create a personal website on your Synology NAS. For the most part youll find the GUI configurations inside the VirtualHostjson file found in that folder.
You can use SCP if you have SSH enabled or the Synology File Manager. How to enable Synologys Web Services Go to Main Menu Control Panel Web Services to set up your website with Web Station which is integratedwith support for PHP and MySQL. Click on virtual host.
Also the Virtual Host function is included in the next official firmware release Beta program is available now. Leave the ports. Add the domain name you bought.
For now Im only able to host one site in the web folder.