Virtual Web Servers

Using Apache as a web server allows you to have many virtual web servers running on one computer. Depending on the name the web server is addressed with, different pages will be displayed. For this purpose, the relevant entries must be inserted into the Section 3: Virtual Hosts in the configuration file /etc/httpd/httpd.conf. The names of the virtual web servers must be known to the DNS server. Virtual web servers can be implemented in two ways: either name-based or IP address-based.

Attention: As long as virtual Web servers (name-based or IP address-based) are used, the main server should no longer be used, because it will normally not answer any requests.

Was this article helpful?

0 0

Post a comment