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.
Configuration
Debian11- Router
Edit DNS Server
cd /etc/bind
;; BIND data file for local loopback interface;$TTL 604800@ INSOArizwanpemula.com. root.rizwanpemula.com. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; NegativeCacheTTL;@ INNSns1.rizwanpemula.com.@ INA 20.1.1.1@ INNSrizwanpemula.com.@ INA 20.1.1.20ns1INA 20.1.1.1wwwINA 20.1.1.20mywebINA 20.1.1.20mailINA 20.1.1.20phpINA 20.1.1.20phpmyadminINA 20.1.1.20wordpressINA 20.1.1.20staticINA 20.1.1.20dinamisINA 20.1.1.20dvwaINA 20.1.1.20