29.5. Creating a New Virtual Host

If you want to host multiple websites on your system, then you will need to create an Apache virtual host for each one. Before you can add a site, its address must first be registered in the DNS, either on a DNS server on your system or on another host. If the site's files are to be owned by a different UNIX user than the one who owns the document root directory, then he must be created first as well.

The entire process for adding a virtual server is:

1.
Decide on a hostname that will be used in the URL for the new website, such as www.example.com.
2.
Decide if your new site is going to be IP-based, or name-based. A name-based site will work fine with all except for old browsers and so is, by far, the best choice ...

Get Managing Linux® Systems with Webmin™ System Administration and Module Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.