The first, known as ServerName, establishes the bottom area for the virtual host definition. The second, called ServerAlias, defines further names that ought to match as in the event that they were the bottom name. For occasion, if you https://ava.hosting/vps/debian-vps/debian-8-vps/ set the ServerName directive to example.com you would define a ServerAlias to , and both will point to this server’s IP address. Insteadof adding a tag to resin.conf, a directoryon the file-system is established, and subdirectories turn into digital hosts.

Now, you’ll have the ability to test the configuration by navigating to your domains in a web browser. This will direct any requests in your two domains on your pc and send them to your server on the designated IP address. The first step is to create a listing construction that will maintain the site knowledge that you might be serving to visitors.

Step Three — Creating Default Pages For Every Digital Host

In the case of Apache 2, nevertheless, the paths of log recordsdata as shown in the above instance (and in any examples further below) ought to be changed from /var/log/httpd to /var/log/apache2. A VirtualHost entry also must be configured for the domain originally hosted on the server (). So in this instance, the unique domain and one further area () are hosted on the same server. Plesk creates virtual hosts for websites based on virtual hosttemplates.

Leave a Comment