From MozillaWiki
Jump to: navigation, search

This module enables a httpd server, and allows simple httpd configurations to be added using a config directory.

It has two available classes:


Given a file name and it's template contents, add it to the Apache config. This is best for vhost configs. For example:

   httpd::config {
       "myapp_httpd.conf" :
           content => template("myapp/myapp_httpd_conf.erb");


Enable httpd as a running service. This is included automatically by httpd::config.


To restart httpd, e.g., when a config for an httpd module changes, use

   notify => Service['httpd']