© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
D. J. HarknessApache Essentialshttps://doi.org/10.1007/978-1-4842-8324-0_7

7. Sample Apache Configurations

Darren James Harkness1  
(1)
Port Coquitlam, BC, Canada
 

This chapter sets up several scenarios and shows you how to best configure Apache to handle each one. I set this up in an anecdotal format because, well, it’s a heck of a lot more interesting to read.

The following examples assume you are using macOS. You may have to adjust the directories for Windows to suit your local installation. If you are using Linux, note that you need to break these up to fit into the mods-enabled and sites-enabled directory structure.

Don’t worry about typing these all out ...

Get Apache Essentials: Install, Configure, Maintain 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.