How To Configure VirtualHost DNS Server With Apache2
Last updated
Last updated
Virtual hosting is a method for hosting multiple domain names on one server. This allows a single server to share its resources, such as memory and processor cycles, without requiring all provided services to use the same hostname.
Apache is one of the favorite and widely used web servers because it is a powerful web server, and is easy to integrate with many platforms such as cPanel, Plesk, VestaCP, etc. By default, the web server can only use one domain. Therefore, the Apache web server has a special configuration called Virtual Host. Virtual host is a configuration on a web server that allows you to use more than one domain on a server. With a virtual host you can create more than one website with different content on a server.
cd /etc/bind
Add a directory to store the virtualhost file di /var/www/
cd /var/www
cd /etc/apache2/sites-available/