Product SiteDocumentation Site

Chapter 13. Webserver Module

13.1. Introduction
13.2. Installation
13.2.1. Supported Platforms
13.2.2. Prerequisites
13.2.3. Installating the Webserver Module
13.3. Implementation
13.3.1. Managed Files and Directories
13.3.2. Classes and Resources
13.3.3. Example Usage
13.4. Enabling and Disabling Modules
13.4.1. Example: Enabling A Module
13.4.2. Example: Disabling A Module
13.5. Providing Customized Configuration
13.5.1. /etc/httpd/conf/httpd.conf
13.5.2. /etc/httpd/includes.d/admin.conf
13.5.3. /etc/httpd/includes.d/aliases.conf
13.5.4. /etc/httpd/includes.d/do-not-bloat-httpd.conf
13.5.5. /etc/httpd/includes.d/listen.conf
13.5.6. /etc/httpd/includes.d/virtualhost.conf
13.6. Tips and Tricks
13.6.1. Wildcard SSL Certificates
13.6.2. Reusing Configuration Snippets
13.7. Extension
13.8. FAQ
The webserver module allows you to configure the webserver using Puppet.

13.1. Introduction

The webserver module enables you to manage the following aspects of a webserver using httpd software from the Apache Foundation:
  • VirtualHosts, from either a template (generated configuration), or from a distributable file.
  • Configuration files located in configs.d/. The module default httpd.conf includes all of the configuration files in configs.d/ by using Include configs.d/*.conf.
  • Configuration files with snippets to be included either on the global level (through httpd.conf) or through a specific include statement in one or the other configuration files. These configuration files end up in includes.d/, and should be included on a per-file basis.
  • Modules from httpd itself, such as mod_proxy to load (defined as a stock module), and it's dependencies (if any).
  • Additional modules available for httpd, such as mod_python (defined as a package module), and it's dependencies (if any).
  • Web applications such as PHP, MediaWiki, and phpMyAdmin (defined as a application module), and it's dependencies (if any).