SHARE
Facebook X Pinterest WhatsApp

Apache Guide: Setting Up Virtual Hosts Page 4

Written By
thumbnail Rich Bowen
Rich Bowen
Jul 20, 2010
ServerWatch content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More



        /usr/local/apache/bin/apache -f /usr/local/apache/conf/name2_httpd.conf

This lets you start as many server daemons as your machine can stand, each
one running a different server configuration. Make sure, of course, that each
configuration file has a Port directive pointing at a different
port, or every one after the first one will fail to start, giving you an error
message like:

       Could not bind to port 80: Port already in use. 

Summary

Virtual hosts let you run multiple Web sites on the same physical server
machine. The advantages of this are numerous, and can be summed up for your
boss as "we don't have to buy another machine for the 18 other Web sites
you want to run."

Future columns

Please let me know if there are other topics that you'd like for me to talk
about in future columns. You can send your suggestions to me at
ApacheToday@rcbowen.com And please
let me know what you think of my columns, at that same address. Many thanks for
reading down this far!

thumbnail Rich Bowen

Rich Bowen is a ServerWatch contributor.

Recommended for you...

What Is a Container? Understanding Containerization
What Is a Print Server? | How It Works and What It Does
Nisar Ahmad
Dec 8, 2023
What Is a Network Policy Server (NPS)? | Essential Guide
Virtual Servers vs. Physical Servers: Comparison and Use Cases
Ray Fernandez
Nov 14, 2023
ServerWatch Logo

ServerWatch is a top resource on servers. Explore the latest news, reviews and guides for server administrators now.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.