{
  "pagination": {
    "limit": 20,
    "offset": 0,
    "first": "/v3/releases?module=puppetlabs-apache&limit=20&offset=0",
    "previous": null,
    "current": "/v3/releases?module=puppetlabs-apache&limit=20&offset=0",
    "next": null,
    "total": 17
  },
  "results": [
    {
      "uri": "/v3/releases/puppetlabs-apache-0.6.0",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.6.0",
      "metadata": {
        "summary": "Puppet module for Apache",
        "author": "puppetlabs",
        "version": "0.6.0",
        "types": [
          {
            "doc": "Manage Apache 2 modules",
            "properties": [
              {
                "doc": "The basic property that the resource should be in.  Valid values are `present`, `absent`.",
                "name": "ensure"
              }
            ],
            "providers": [
              {
                "doc": "Manage Apache 2 modules on Debian and Ubuntu\n\nRequired binaries: `a2enmod`, `a2dismod`.  Default for `operatingsystem` == `debian, ubuntu`.",
                "name": "a2mod"
              },
              {
                "doc": "Manage Apache 2 modules on Gentoo\n\nDefault for `operatingsystem` == `gentoo`.",
                "name": "gentoo"
              },
              {
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    ",
                "name": "modfix"
              },
              {
                "doc": "Manage Apache 2 modules on RedHat family OSs\n\nDefault for `osfamily` == `redhat`.",
                "name": "redhat"
              }
            ],
            "parameters": [
              {
                "doc": "The name of the module to be managed",
                "name": "name"
              },
              {
                "doc": "The name of the .so library to be loaded",
                "name": "lib"
              },
              {
                "doc": "Module identifier string used by LoadModule. Default: module-name_module",
                "name": "identifier"
              }
            ],
            "name": "a2mod"
          }
        ],
        "checksums": {
          "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
          "manifests/mod/auth_kerb.pp": "a7e4d1789f23528c7a19690340387a85",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "manifests/mod/userdir.pp": "a7d01097caba2b3dcec7d6e96e0bf500",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "spec/defines/vhost/proxy_spec.rb": "de5cd37d9137791383b6a521feddfb82",
          "templates/httpd.conf.erb": "63e07e1d3428ecc3da8e812eb2524978",
          "spec/defines/vhost/redirect_spec.rb": "98f2a7022b7302a771d811e424454639",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "24ad9db4f6ba0b4fc7ed77b509b4244c",
          "Gemfile": "e87c237ce1d9c2a91e439b8b6d5535a9",
          "CHANGELOG": "c682326786c52fa91a2f13ae48b4d018",
          "manifests/vhost/proxy.pp": "1b907bd712e0ac17385cd822a992d87d",
          "Modulefile": "32454a7842eb7df4461e4b0bf52a15bb",
          "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
          "manifests/ssl.pp": "7f944d1c103a59ebd04d02e68af69f7a",
          "templates/mod/disk_cache.conf.erb": "bc2cb0003944e688d3137781f6a49997",
          "manifests/mod/proxy.pp": "d789eec804b4e887858cde19429afc7d",
          "spec/classes/php_spec.rb": "7c176dcb6cf35adce2d0ff3d17678f8a",
          "manifests/params.pp": "df442b5ea6cd7ec31e7eca15ac6b6f87",
          "manifests/mod/disk_cache.pp": "a6ce6b0d3393bff8287f6267dd49bc82",
          "manifests/vhost/redirect.pp": "7fb0fe676efa6bbc7de653d0651235c1",
          "manifests/mod/proxy_html.pp": "8cb51fa968a18d957274a2b68cca8216",
          "README.md": "9e8a84ba0cf502551d3b1c0e34320864",
          "templates/mod/php.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "templates/vhost-default.conf.erb": "6d0ca4c613f92f58f5e960ec0512d3f4",
          "spec/classes/mod/ssl_spec.rb": "df737098c4bd03179e29d0c22a80a565",
          "templates/vhost-proxy.conf.erb": "21b2be5facb504dc7874f705c7c0882f",
          "manifests/mod/proxy_http.pp": "773d0fbb934440a24b3bc87517faa4d4",
          "spec/classes/dev_spec.rb": "64d66d5074a1d634d765db182bea5e43",
          "spec/classes/python_spec.rb": "ce7b11e4fb4e7bfe5b5c18ded9d24897",
          "Rakefile": "0254db5d3fc38c67a2c160d7296a24f8",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "manifests/mod/cgi.pp": "eba237e3f10511c02d8f27b99592103d",
          "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
          "manifests/proxy.pp": "54e7657920b580546f3bef3980f2fd03",
          "spec/classes/mod/python_spec.rb": "99f05654c0b748ab18096c5cf4b74781",
          "templates/test.vhost.erb": "31eb6a591acc699fe4e67a7cf367d0ab",
          "manifests/mod/dev.pp": "71234485e642f0e8cdd8774670d48b7f",
          "spec/classes/mod/wsgi_spec.rb": "7a05c23e66b027d4738ce1368f6d9f43",
          "manifests/python.pp": "2edb06e8119b67a5a62fb24fb280d3e5",
          "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
          "manifests/vhost.pp": "1643658d86e883b2bb68c4e8a2674035",
          "manifests/mod/dav_fs.pp": "c6acce86fe14f75521dc8c2920ccedf7",
          "manifests/mod/php.pp": "6de0671e78c1411cc0713f80075ef61f",
          "templates/vhost-redirect.conf.erb": "f12c8165c2e9a688402ec8484ef6c59c",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
          "lib/puppet/type/a2mod.rb": "f230e4c3e6a111bc6dc79ab2287c9a29",
          "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
          "lib/puppet/provider/a2mod/a2mod.rb": "8b4836cfbcc980e60c30cc046bc77cd5",
          "manifests/mod/python.pp": "344f7b359d801ee6942211726004fa93",
          "tests/vhost.pp": "4a97d258da130cad784249a6097fd0ac",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "spec/defines/mod_spec.rb": "c7e74bfdc295af1c0280a7df9828dea0",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "manifests/mod.pp": "f8e6c202844b424d4b4b730813f4c6d3",
          "lib/puppet/provider/a2mod/redhat.rb": "90b9add30cf9acf2289a51d9f4c31bd7",
          "manifests/mod/default.pp": "8a2bc7a4312d60fd09ac4eadceab9330",
          "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
          "spec/classes/apache_spec.rb": "10f2a7629c7e596864f5c0b3c2ece6cf",
          "manifests/dev.pp": "c263f8db2a35361e9dfdef30477f8ee3",
          "manifests/mod/wsgi.pp": "90ef340ac19106fe801656091d3f9a4b",
          "spec/classes/ssl_spec.rb": "67c8ccf6b5055f50f40978b221873c88",
          "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
          "manifests/init.pp": "91cc24165436ab241855eb897fcc71b9",
          "manifests/mod/ssl.pp": "2ffd543847785cd2f916f244f8742448",
          "spec/classes/params_spec.rb": "41f4e90e9cbe23e5c81831248b2f3cd4",
          "manifests/php.pp": "a4478838b4cf9b0525b04db150cf55b8",
          "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
          "manifests/mod/passenger.pp": "0bb9e5d4a49b72e56b7a909da42c47bc",
          "spec/classes/mod/auth_kerb_spec.rb": "6b71ffa45b4a0a1476ee56c75c26e6db",
          "spec/defines/vhost_spec.rb": "ccea97121bfcab1b50517d4413a55c99",
          "templates/mod/proxy.conf.erb": "54cd35ef17c78c18f10be50eebb4142c",
          "templates/mod/userdir.conf.erb": "fd73fe59b6a5dcf16a5df9af91c187dd"
        },
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "name": "puppetlabs-apache",
        "dependencies": [
          {
            "version_requirement": ">= 0.0.4",
            "name": "puppetlabs/firewall"
          },
          {
            "version_requirement": ">= 2.2.1",
            "name": "puppetlabs/stdlib"
          }
        ],
        "description": "Module for Apache configuration",
        "license": "Apache 2.0"
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.6.0.tar.gz",
      "file_size": 31302,
      "file_md5": "89fa11aef710c060e0bf9f9ff2cae455",
      "downloads": 25919,
      "readme": "<section class=\"markdown\"><h1>Puppetlabs module for Apache</h1>\n\n<p>Apache is widely-used web server and this module will allow to configure\nvarious modules and setup virtual hosts with minimal effort.</p>\n\n<h2>Basic usage</h2>\n\n<p>To install Apache</p>\n\n<pre><code>class {&#39;apache&#39;:  }\n</code></pre>\n\n<p>To install the Apache PHP module</p>\n\n<pre><code>class {&#39;apache::mod::php&#39;: }\n</code></pre>\n\n<h2>Configure a virtual host</h2>\n\n<p>You can easily configure many parameters of a virtual host. A minimal\nexample is:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n}\n</code></pre>\n\n<p>A slightly more complicated example, which moves the docroot and\nlogfile to an alternate location, might be:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n    docroot         =&gt; &#39;/home/www.example.com/docroot/&#39;,\n    logroot         =&gt; &#39;/srv/www.example.com/logroot/&#39;,\n    serveradmin     =&gt; &#39;web@example.com&#39;,\n    serveraliases   =&gt; [&#39;example.com&#39;,],\n}\n</code></pre>\n\n<h2>Dependencies</h2>\n\n<p>Some functionality is dependent on other modules:</p>\n\n<ul>\n<li><a href=\"https://github.com/puppetlabs/puppetlabs-stdlib\">stdlib</a></li>\n<li><a href=\"https://github.com/puppetlabs/puppetlabs-firewall\">firewall</a></li>\n</ul>\n\n<h2>Notes</h2>\n\n<p>Since Puppet cannot ensure that all parent directories exist you need to\nmanage these yourself. In the more advanced example above, you need to ensure \nthat <code>/home/www.example.com</code> and <code>/srv/www.example.com</code> directories exist.</p>\n\n<h2>Contributors</h2>\n\n<ul>\n<li>A cast of hundreds, hopefully you too soon</li>\n</ul>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": "<section class=\"plaintext\"><pre>2013-03-2 Release 0.6.0\n- update travis tests (add more supported versions)\n- add access log_parameter\n- make purging of vhost dir configurable\n\n2012-08-24 Release 0.4.0\nChanges:\n- `include apache` is now required when using apache::mod::*\n\nBugfixes:\n- Fix syntax for validate_re\n- Fix formatting in vhost template\n- Fix spec tests such that they pass\n\n2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2013-03-28 15:44:52 -0700",
      "updated_at": "2013-03-28 15:44:52 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.9.0",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.9.0",
      "metadata": {
        "name": "puppetlabs-apache",
        "version": "0.9.0",
        "summary": "Puppet module for Apache",
        "author": "puppetlabs",
        "description": "Module for Apache configuration",
        "dependencies": [
          {
            "name": "puppetlabs/stdlib",
            "version_requirement": ">= 2.4.0"
          },
          {
            "name": "puppetlabs/concat",
            "version_requirement": ">= 1.0.0"
          }
        ],
        "types": [
          {
            "parameters": [
              {
                "name": "name",
                "doc": "The name of the module to be managed"
              },
              {
                "name": "lib",
                "doc": "The name of the .so library to be loaded"
              },
              {
                "name": "identifier",
                "doc": "Module identifier string used by LoadModule. Default: module-name_module"
              }
            ],
            "providers": [
              {
                "name": "gentoo",
                "doc": "Manage Apache 2 modules on Gentoo"
              },
              {
                "name": "modfix",
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    "
              },
              {
                "name": "redhat",
                "doc": "Manage Apache 2 modules on RedHat family OSs"
              },
              {
                "name": "a2mod",
                "doc": "Manage Apache 2 modules on Debian and Ubuntu"
              }
            ],
            "name": "a2mod",
            "doc": "Manage Apache 2 modules"
          }
        ],
        "checksums": {
          ".bundle/config": "b898efea5e8783d6593fcdabec67e925",
          ".fixtures.yml": "b67781fff881cf708d92df4851cf0e70",
          ".nodeset.yml": "f2b857f9fc7a701ff118e28591c12925",
          ".travis.yml": "d0bd592680200f18b2ef4088c2569701",
          "CHANGELOG.md": "483202a1f4f08294d798c0685c518108",
          "Gemfile": "c1cd7b0477f1a99e0156a471aac6cd58",
          "Gemfile.lock": "74613ef355389b668fc4b51a0f9eac39",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "Modulefile": "fef4b236b7d7885250ca64dbe6074e0a",
          "README.md": "d3cb59220928734b6d41a6f3a0302c64",
          "README.passenger.md": "9007ae9e57138bed0c01ae58607ec2aa",
          "Rakefile": "0428ea3759a4692c91604396c406a9c1",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "lib/puppet/provider/a2mod.rb": "03ed73d680787dd126ea37a03be0b236",
          "lib/puppet/provider/a2mod/a2mod.rb": "d986d8e8373f3f31c97359381c180628",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "lib/puppet/provider/a2mod/redhat.rb": "c39b80e75e7d0666def31c2a6cdedb0b",
          "lib/puppet/type/a2mod.rb": "9042ccc045bfeecca28bebb834114f05",
          "manifests/balancer.pp": "c635b2d2dec8b5972509960152e169a3",
          "manifests/balancermember.pp": "8afe51921a42545402fa457820162ae2",
          "manifests/default_mods.pp": "8493f16440d3eb7b9d392049dfef680b",
          "manifests/default_mods/load.pp": "b3f21b3186216795dd18ee051f01e3c2",
          "manifests/dev.pp": "606c3cbe27f32b61cfcbd15fb211890c",
          "manifests/init.pp": "b0d1433c1848ee81f18d528fcdf5abec",
          "manifests/listen.pp": "5efc62bd75a0a9a9565b12bd8cb2a9e4",
          "manifests/mod.pp": "fc66b79d9086d8d296c372d605d31890",
          "manifests/mod/alias.pp": "f5d65ca4755f5464b32c5f95fd42a052",
          "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
          "manifests/mod/auth_kerb.pp": "7876ffdca25396285a26afae8dd030eb",
          "manifests/mod/autoindex.pp": "1b07e7737b4b27f977f80c289172a55b",
          "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
          "manifests/mod/cgi.pp": "8c9265733584e188196fe69fd3b9fdd7",
          "manifests/mod/cgid.pp": "63bd38d692ec78f351a6f234f29c2f16",
          "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
          "manifests/mod/dav_fs.pp": "93fce4f45e7a85e9d6eb2b745390eaba",
          "manifests/mod/dav_svn.pp": "85a9a3efe5cce6096d89cf29195e6dc1",
          "manifests/mod/deflate.pp": "f317ddf1cbfee52945d0433a3b25c728",
          "manifests/mod/dev.pp": "d6a001af402d8e82e952c8243c5e5321",
          "manifests/mod/dir.pp": "f3c3e6a21653ebda12f35b4b140e68d5",
          "manifests/mod/disk_cache.pp": "da3b7f47ce079f20db2d20e2d6539c11",
          "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
          "manifests/mod/headers.pp": "224438518465d09c951eb00dbaf8123c",
          "manifests/mod/info.pp": "9a45dd07a2681dc1fef9204de3f42bd9",
          "manifests/mod/itk.pp": "852588a26f2635979abf24fd33f1a9ff",
          "manifests/mod/ldap.pp": "f5033ee5197938d402854d8ffa9fb1d3",
          "manifests/mod/mime.pp": "c9ff4215f9308fd729e96a8d76d3fe1d",
          "manifests/mod/mime_magic.pp": "9c3a73f877de39c1db2178b827c4a86d",
          "manifests/mod/mpm_event.pp": "c1540d87cfb2b4a4631c4cc5d3e191f5",
          "manifests/mod/negotiation.pp": "9f5d70e4c961175a78a049fedaac85c9",
          "manifests/mod/passenger.pp": "29fca0851862aaaa836acf25718c08cc",
          "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
          "manifests/mod/php.pp": "247915331ce4ee815a0c032897a83157",
          "manifests/mod/prefork.pp": "2eb8a29fa3a81b4b8ade96989ef06742",
          "manifests/mod/proxy.pp": "e0e9f9963f720501d9b53ab9fb35f256",
          "manifests/mod/proxy_balancer.pp": "c71c8ae1eb91d29ec26e19899db2bfec",
          "manifests/mod/proxy_html.pp": "25cbac9bc2553bc3a18ede060a1a14fd",
          "manifests/mod/proxy_http.pp": "773d0fbb934440a24b3bc87517faa4d4",
          "manifests/mod/python.pp": "0b22df3d0e9a39ce948212e18329155f",
          "manifests/mod/reqtimeout.pp": "2ff860e05de7352d4a1bcd57c0ee08f0",
          "manifests/mod/rewrite.pp": "165fdccc8acc61e5fb088d9917861a3c",
          "manifests/mod/setenvif.pp": "32098aaab01723cae4c44d2fff8114ea",
          "manifests/mod/ssl.pp": "80ee4f522104719f07aa2be33d320973",
          "manifests/mod/status.pp": "1619d96a0d9b9534145209c98c683cbe",
          "manifests/mod/suphp.pp": "c42d20b057007eff1a75595fc3fe7adf",
          "manifests/mod/userdir.pp": "7166fee20a3e5b97d61dfae18fb745c9",
          "manifests/mod/vhost_alias.pp": "ea2d06875ed4f47ba65da0f7169e529e",
          "manifests/mod/worker.pp": "36bdeaa252d3ba3c14296bbcf2acb9b0",
          "manifests/mod/wsgi.pp": "092d35c267e671444d42e2243606bc99",
          "manifests/mod/xsendfile.pp": "ebe6241729f1b0d8125043a1f34caa54",
          "manifests/namevirtualhost.pp": "27bb9faa95147fcd15ec2aa0a95bc3af",
          "manifests/params.pp": "525b2ac104a0a4922f6be584bc5c6e9d",
          "manifests/php.pp": "a4478838b4cf9b0525b04db150cf55b8",
          "manifests/proxy.pp": "54e7657920b580546f3bef3980f2fd03",
          "manifests/python.pp": "2edb06e8119b67a5a62fb24fb280d3e5",
          "manifests/service.pp": "8e5145ad7866adb9b1f26494559ba6a7",
          "manifests/ssl.pp": "7f944d1c103a59ebd04d02e68af69f7a",
          "manifests/vhost.pp": "2242685bed5db4a4fa08ebfe1f836084",
          "spec/classes/apache_spec.rb": "dbeb82d859d03037b86c754d2e9437b9",
          "spec/classes/dev_spec.rb": "ecc212316f7801f427fa4c30ca65e259",
          "spec/classes/mod/auth_kerb_spec.rb": "70e2d94d84724a1b54aff6a9dede1ca6",
          "spec/classes/mod/dav_svn_spec.rb": "6b014a30e017a6cf30bdc4221e4a15b9",
          "spec/classes/mod/dev_spec.rb": "27a9d92460a3e62842b5e64f7154f893",
          "spec/classes/mod/dir_spec.rb": "e462dbea87eb1211e496f60e40538370",
          "spec/classes/mod/fcgid_spec.rb": "3bd6c0638347b763a88e44d5d7216cb0",
          "spec/classes/mod/info_spec.rb": "3921a934a1d41c6e1cce328a45b3cc1d",
          "spec/classes/mod/itk_spec.rb": "e9edc7ebebeda4cea0bf896c597c2267",
          "spec/classes/mod/passenger_spec.rb": "959b0a3235999e5201980871ea2b862a",
          "spec/classes/mod/perl_spec.rb": "0ba258605762d1fa25398a08e90157e4",
          "spec/classes/mod/php_spec.rb": "c4050e546d010f0dcb5a8bd580b5f3ed",
          "spec/classes/mod/prefork_spec.rb": "0f7de99f1fb58670f11fde4f7280e99e",
          "spec/classes/mod/proxy_html_spec.rb": "bf313b5dfdd2c9f3054f4b791c32a84c",
          "spec/classes/mod/python_spec.rb": "2b8079e833cbe6313435a72d9fc00cb9",
          "spec/classes/mod/ssl_spec.rb": "53b8ecefa9ce0af2562d8183c063167d",
          "spec/classes/mod/suphp_spec.rb": "1da3f6561f19d8c7f2a71655fa7772ea",
          "spec/classes/mod/worker_spec.rb": "f3324663e5f93d1b73911276bd984e79",
          "spec/classes/mod/wsgi_spec.rb": "c41bc8e4cc95a87d1448e06b7d8001eb",
          "spec/classes/params_spec.rb": "9b1984a3e8a485ff128512833400dfbd",
          "spec/classes/service_spec.rb": "3448d0a4256bd806902c45f2c13bf5a6",
          "spec/defines/mod_spec.rb": "d82643d472be88a65cd202381099ed6f",
          "spec/defines/vhost_spec.rb": "4535046a2cf7d7f9745020b92503f2e4",
          "spec/fixtures/modules/site_apache/templates/fake.conf.erb": "6b0431dd0b9a0bf803eb0684300c2cff",
          "spec/spec.opts": "c407193b3d9028941ef59edd114f5968",
          "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
          "spec/spec_helper_system.rb": "c54584d03120766bac28221597920d3d",
          "spec/system/basic_spec.rb": "73bab7cf3eb0554b7d7801613c4b483e",
          "spec/system/class_spec.rb": "ada9b7ebb090d6b4e62db22b3c82b330",
          "spec/system/default_mods_spec.rb": "b57b9deb89c3905a7a7d9ca9e573f62f",
          "spec/system/itk_spec.rb": "cbce8cac9e311b2cfce48eb2369ced7b",
          "spec/system/mod_php_spec.rb": "9bc01054af24b981fa1c49ac723469fc",
          "spec/system/mod_suphp_spec.rb": "9d38045b3dcb052153e7c08164301c13",
          "spec/system/prefork_worker_spec.rb": "d7b05867fd73464971919fd4393b3719",
          "spec/system/service_spec.rb": "3cd71e4e40790e1624487fd233f18a07",
          "spec/system/vhost_spec.rb": "2e3c1fa5ab5a6e4f8513c68904e52269",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "24ad9db4f6ba0b4fc7ed77b509b4244c",
          "templates/httpd.conf.erb": "154af1419ad44722c9f33bd1eb9a9637",
          "templates/listen.erb": "6286aa08f9e28caee54b1e1ee031b9d6",
          "templates/mod/alias.conf.erb": "669fc0a80839be3a81e2f4d4150c3ad6",
          "templates/mod/autoindex.conf.erb": "2421a3c6df32c7e38c2a7a22afdf5728",
          "templates/mod/cgid.conf.erb": "3d4e24001b50eb16561e45f5a8237b32",
          "templates/mod/dav_fs.conf.erb": "fdf1f8cff4708a282ef491d60868d1d7",
          "templates/mod/deflate.conf.erb": "44d54f557a5612be8da04c49dd6da862",
          "templates/mod/dir.conf.erb": "2485da78a2506c14bf51dde38dd03360",
          "templates/mod/disk_cache.conf.erb": "7d3e7a5ee3bd7b6a839924b06a60667f",
          "templates/mod/info.conf.erb": "bb48951beaeaf582d1a1023cb661ac32",
          "templates/mod/itk.conf.erb": "eff84b78e4f2f8c5c3a2e9fc4b8aad16",
          "templates/mod/ldap.conf.erb": "a8a33f645497e0dbcec363c98be43795",
          "templates/mod/mime.conf.erb": "2fa646fe615e44d137a5d629f868c107",
          "templates/mod/mime_magic.conf.erb": "8a4f61bd7539871cb507cc95f5dbd205",
          "templates/mod/mpm_event.conf.erb": "80097a19d063a4f973465d9ef5c0c0bf",
          "templates/mod/negotiation.conf.erb": "47284b5580b986a6ba32580b6ffb9fd7",
          "templates/mod/passenger.conf.erb": "6e0c2d796b5e67aa366eadc53c963a5e",
          "templates/mod/php5.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
          "templates/mod/prefork.conf.erb": "f9ec5a7eaea78a19b04fa69f8acd8a84",
          "templates/mod/proxy.conf.erb": "ae1cd187ffbd5cc9b74f8711e313e96b",
          "templates/mod/proxy_html.conf.erb": "67546d56f2d6bb1860338257e3ac9d29",
          "templates/mod/reqtimeout.conf.erb": "81c51851ab7ee7942bef389dc7c0e985",
          "templates/mod/setenvif.conf.erb": "c7ede4173da1915b7ec088201f030c28",
          "templates/mod/ssl.conf.erb": "2567261763976c62a4388abb62ae1e03",
          "templates/mod/status.conf.erb": "da061291068f8e20cf33812373319c40",
          "templates/mod/suphp.conf.erb": "05bb7b3ea23976b032ce405bfd4edd18",
          "templates/mod/userdir.conf.erb": "e5a7a7229dbf0de07bc034dd3d108ea2",
          "templates/mod/worker.conf.erb": "9661e7a59eaefb9f17d4c2680c0d243d",
          "templates/mod/wsgi.conf.erb": "7e098b0013f6e64e935bf244f7efcd67",
          "templates/namevirtualhost.erb": "fbfca19a639e18e6c477e191344ac8ae",
          "templates/ports_header.erb": "afe35cb5747574b700ebaa0f0b3a626e",
          "templates/vhost.conf.erb": "bc0f0bae3b149c8b78d9127714f2d28c",
          "templates/vhost/_aliases.erb": "319183dd74f4b231747fffa7b4a939f3",
          "templates/vhost/_block.erb": "7cb56db9254729b54e8d30686c4f3b1a",
          "templates/vhost/_custom_fragment.erb": "67a4475275ec9208e6421b047b9ed7f4",
          "templates/vhost/_directories.erb": "5131331896f3839221e1231e28b6e509",
          "templates/vhost/_itk.erb": "db5b12d7236dbc19b62ce13625d9d60e",
          "templates/vhost/_proxy.erb": "8faa613a00584432f99956f4b0ac1fbd",
          "templates/vhost/_rack.erb": "ebe187c1bdc81eec9c8e0d9026120b18",
          "templates/vhost/_redirect.erb": "0e2eed04e30240fbbd6c4ef7db6b7058",
          "templates/vhost/_requestheader.erb": "db1b0cdda069ae809b5b83b0871ef991",
          "templates/vhost/_rewrite.erb": "dcf423c014bdb222bcf15314a2f3a41f",
          "templates/vhost/_scriptalias.erb": "0373372000ca3198594f32ac637a9462",
          "templates/vhost/_serveralias.erb": "2ef30c2152b9284463588f408f7f371f",
          "templates/vhost/_setenv.erb": "da6778b324857234c8441ef346d08969",
          "templates/vhost/_ssl.erb": "5451565f3c34abdd50024af607ed9dc1",
          "templates/vhost/_suphp.erb": "6ea2553a4c4284d41b435fa2f4f4edc7",
          "templates/vhost/_wsgi.erb": "3bbab1e5757dfb584504f05354275f81",
          "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "tests/mods.pp": "0085911ba562b7e56ad8d793099c9240",
          "tests/mods_custom.pp": "9afd068edce0538b5c55a3bc19f9c24a",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "tests/vhost.pp": "70ce947e12f9b344a24f95a08e622c6c",
          "tests/vhost_directories.pp": "b79a3bcf72474ce4e3b75f6a70cbf272",
          "tests/vhost_ip_based.pp": "7d9f7b6976de7488ab6ff0a6e647fc73",
          "tests/vhost_ssl.pp": "9f3716bc15a9a6760f1d6cc3bf8ce8ac",
          "tests/vhosts_without_listen.pp": "a6692104056a56517b4365bcc816e7f4"
        },
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
        "license": "Apache 2.0"
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.9.0.tar.gz",
      "file_size": 62433,
      "file_md5": "97ab32e19f65dbe6d7f42b3e5c3ada8e",
      "downloads": 18449,
      "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-apache\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-apache.png?branch=main\" alt=\"Build Status\"></a></p>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_mods =&gt; false,\n    }\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/first&#39;,\n    }\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/second&#39;,\n      docroot_owner =&gt; &#39;third&#39;,\n      docroot_group =&gt; &#39;third&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;ssl.example.com&#39;:\n      port    =&gt; &#39;443&#39;,\n      docroot =&gt; &#39;/var/www/ssl&#39;,\n      ssl     =&gt; true,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port     =&gt; &#39;443&#39;,\n      docroot  =&gt; &#39;/var/www/fourth&#39;,\n      ssl      =&gt; true,\n      ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n      ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory\n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.loc&#39;:\n      vhost_name =&gt; &#39;*&#39;,\n      port       =&gt; &#39;80&#39;,\n      virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n      docroot          =&gt; &#39;/var/www&#39;,\n      serveraliases    =&gt; [&#39;*.loc&#39;,],\n    }\n</code></pre>\n\n<p>To set up a virtual host with suPHP</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;suphp.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/home/appuser/myphpapp&#39;,\n      suphp_addhandler    =&gt; &#39;x-httpd-php&#39;,\n      suphp_engine        =&gt; &#39;on&#39;,\n      suphp_configpath    =&gt; &#39;/etc/php5/apache2&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with WSGI</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wsgi.example.com&#39;:\n      port                        =&gt; &#39;80&#39;,\n      docroot                     =&gt; &#39;/var/www/pythonapp&#39;,\n      wsgi_daemon_process         =&gt; &#39;wsgi&#39;,\n      wsgi_daemon_process_options =&gt;\n        { processes =&gt; &#39;2&#39;, threads =&gt; &#39;15&#39;, display-name =&gt; &#39;%{GROUP}&#39; },\n      wsgi_process_group          =&gt; &#39;wsgi&#39;,\n      wsgi_script_aliases         =&gt; { &#39;/&#39; =&gt; &#39;/var/www/demo.wsgi&#39; },\n    }\n</code></pre>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;default-ssl&#39;:\n      port            =&gt; 443,\n      ssl             =&gt; true,\n      docroot         =&gt; $docroot,\n      scriptalias     =&gt; $scriptalias,\n      serveradmin     =&gt; $serveradmin,\n      access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n      }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted, meaning Puppet will check the service status to start/stop it. Defaults to &#39;true&#39;, meaning the service is enabled/running.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;false&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>httpd_dir</code></h5>\n\n<p>Changes the base location of the configuration directories used for the service. This is useful for specially repackaged HTTPD builds but may have unintended concequences when used in combination with the default distribution packages. Default is based on your OS.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::prefork</code>, <code>apache::mod::worker</code> and <code>apache::mod::itk</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::worker</code>, <code>apache::mod::worker</code> or <code>apache::mod::itk</code> classes with parameters. Valid values are <code>worker</code>, <code>prefork</code>, <code>itk</code> (Debian), or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and <code>worker</code> on Debian.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h5><code>keepalive</code></h5>\n\n<p>Setting this allows you to enable persistent connections.</p>\n\n<h5><code>keepalive_timeout</code></h5>\n\n<p>Amount of time the server will wait for subsequent requests on a persistent connection. Defaults to &#39;15&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Changes the location of the directory Apache log files are placed in. Defaut is based on your OS.</p>\n\n<h5><code>ports_file</code></h5>\n\n<p>Changes the name of the file containing Apache ports configuration. Default is <code>${conf_dir}/ports.conf</code>.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre lang=\"puppet\"><code>    apache::mod { &#39;rewrite&#39;: }\n    apache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>deflate</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>fcgid</code></li>\n<li><code>info</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code></li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code></li>\n<li><code>suphp</code></li>\n<li><code>userdir</code>*</li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code> (see <a href=\"#class-apachemodwsgi\">apache::mod::wsgi</a> below)</li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::ssl&#39;: }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Class: <code>apache::mod::wsgi</code></h4>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::wsgi&#39;:\n      wsgi_socket_prefix =&gt; &quot;\\${APACHE_RUN_DIR}WSGI&quot;,\n      wsgi_python_home   =&gt; &#39;/path/to/virtenv&#39;,\n    }\n</code></pre>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_vhost =&gt; false,\n    }\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_syslog</code></h5>\n\n<p>Sends all access log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"puppet\"><code>aliases =&gt; [ { alias =&gt; &#39;/alias&#39;, path =&gt; &#39;/path/to/directory&#39; } ],\n</code></pre>\n\n<p>For <code>Alias</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes.  Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n        { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n      ],\n    }\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p>The directives will be embedded within the <code>Directory</code> directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n        addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n      } ],\n    }\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n    }\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>headers</code></h6>\n\n<p>Adds lines for <code>Header</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header\">Apache Header documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; {\n        path    =&gt; &#39;/path/to/directory&#39;,\n        headers =&gt; &#39;Set X-Robots-Tag &quot;noindex, noarchive, nosnippet&quot;&#39;,\n      },\n    }\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n    }\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow, Deny&#39; } ],\n    }\n</code></pre>\n\n<h6><code>auth_type</code></h6>\n\n<p>Sets the value for <code>AuthType</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authtype\">Apache AuthType\ndocumentation</a>.</p>\n\n<h6><code>auth_name</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authname\">Apache AuthName\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_algorithm</code></h6>\n\n<p>Sets the value for <code>AuthDigestAlgorithm</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestalgorithm\">Apache\nAuthDigestAlgorithm\ndocumentation</a></p>\n\n<h6><code>auth_digest_domain</code></h6>\n\n<p>Sets the value for <code>AuthDigestDomain</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestdomain\">Apache AuthDigestDomain\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_nonce_lifetime</code></h6>\n\n<p>Sets the value for <code>AuthDigestNonceLifetime</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestnoncelifetime\">Apache\nAuthDigestNonceLifetime\ndocumentation</a></p>\n\n<h6><code>auth_digest_provider</code></h6>\n\n<p>Sets the value for <code>AuthDigestProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestprovider\">Apache AuthDigestProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_qop</code></h6>\n\n<p>Sets the value for <code>AuthDigestQop</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestqop\">Apache AuthDigestQop\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_shmem_size</code></h6>\n\n<p>Sets the value for <code>AuthAuthDigestShmemSize</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestshmemsize\">Apache AuthDigestShmemSize\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_authoritative</code></h6>\n\n<p>Sets the value for <code>AuthBasicAuthoritative</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicauthoritative\">Apache\nAuthBasicAuthoritative\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_fake</code></h6>\n\n<p>Sets the value for <code>AuthBasicFake</code> as per the <a href=\"https://httpd.apache.org/docs/trunk/mod/mod_auth_basic.html#authbasicfake\">Apache AuthBasicFake\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_provider</code></h6>\n\n<p>Sets the value for <code>AuthBasicProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider\">Apache AuthBasicProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_user_file</code></h6>\n\n<p>Sets the value for <code>AuthUserFile</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_authn_file.html#authuserfile\">Apache AuthUserFile\ndocumentation</a>.</p>\n\n<h6><code>auth_require</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#require\">Apache Require\ndocumentation</a></p>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n    }\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h6><code>custom_fragment</code></h6>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the\ndirectory configuration.</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_syslog</code></h5>\n\n<p>Sends all error log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n    }\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:</p>\n\n<pre lang=\"puppet\"><code>$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; }\n]\n\napache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  proxy_pass       =&gt; $proxy_pass,\n}\n</code></pre>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n      redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n    }\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n    }\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      request_headers =&gt; [\n        &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n        &#39;unset MirrorID&#39;,\n      ],\n    }\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n      rewrite_base =&gt; &#39;/blog/&#39;,\n    }\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n    }\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n    }\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code>.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>sslproxyengine</code></h5>\n\n<p>Specifies whether to use <code>SSLProxyEngine</code> or not. Defaults to <code>false</code>.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h5><code>itk</code></h5>\n\n<p>Hash containing infos to configure itk as per the <a href=\"http://mpm-itk.sesse.net/\">ITK documentation</a>.</p>\n\n<p>Keys could be:</p>\n\n<ul>\n<li>user + group</li>\n<li>assignuseridexpr</li>\n<li>assigngroupidexpr</li>\n<li>maxclientvhost</li>\n<li>nice</li>\n<li>limituidrange (Linux 3.5.0 or newer)</li>\n<li>limitgidrange (Linux 3.5.0 or newer)</li>\n</ul>\n\n<p>Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      itk =&gt; {\n        user  =&gt; &#39;someuser&#39;,\n        group =&gt; &#39;somegroup&#39;,\n      },\n    }\n</code></pre>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/main/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;third.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/third&#39;,\n      serveradmin =&gt; &#39;admin@example.com&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixth.example.com&#39;:\n      serveraliases =&gt; [\n        &#39;sixth.example.org&#39;,\n        &#39;sixth.example.net&#39;,\n      ],\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/fifth&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;eleventh.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/eleventh&#39;,\n      scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fifteenth.example.com&#39;:\n      port           =&gt; &#39;80&#39;,\n      docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n      rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre lang=\"puppet\"><code>    #The non-ssl vhost\n    apache::vhost { &#39;first.example.com non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n\n    #The SSL vhost at the same domain\n    apache::vhost { &#39;first.example.com ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n      servername      =&gt; &#39;sixteenth.example.com&#39;,\n      port            =&gt; &#39;80&#39;,\n      docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n      redirect_status =&gt; &#39;permanent&#39;\n      redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39;\n    }\n    apache::vhost { &#39;sixteenth.example.com ssl&#39;:\n      servername =&gt; &#39;sixteenth.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.10&#39;,\n      docroot  =&gt; &#39;/var/www/first&#39;,\n      ip_based =&gt; true,\n    }\n    apache::vhost { &#39;second.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.11&#39;,\n      docroot  =&gt; &#39;/var/www/second&#39;,\n      ip_based =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;80&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n    apache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;443&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/second&#39;,\n    }\n    apache::vhost { &#39;third.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/third&#39;,\n    }\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fourth&#39;,\n      add_listen =&gt; false,\n    }\n    apache::vhost { &#39;fifth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fifth&#39;,\n      add_listen =&gt; false,\n    }\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre lang=\"puppet\"><code>      @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n        balancer_cluster =&gt; &#39;puppet00&#39;,\n        url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n        options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n      }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet01&#39;:\n        proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n      }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, and CentOS 5.8.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": null,
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2013-09-06 14:49:24 -0700",
      "updated_at": "2013-09-06 14:49:24 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.8.1",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.8.1",
      "metadata": {
        "name": "puppetlabs-apache",
        "version": "0.8.1",
        "summary": "Puppet module for Apache",
        "author": "puppetlabs",
        "description": "Module for Apache configuration",
        "dependencies": [
          {
            "name": "puppetlabs/stdlib",
            "version_requirement": ">= 2.2.1"
          },
          {
            "name": "ripienaar/concat",
            "version_requirement": ">= 0.2.0"
          }
        ],
        "types": [
          {
            "parameters": [
              {
                "name": "name",
                "doc": "The name of the module to be managed"
              },
              {
                "name": "lib",
                "doc": "The name of the .so library to be loaded"
              },
              {
                "name": "identifier",
                "doc": "Module identifier string used by LoadModule. Default: module-name_module"
              }
            ],
            "providers": [
              {
                "name": "a2mod",
                "doc": "Manage Apache 2 modules on Debian and Ubuntu"
              },
              {
                "name": "redhat",
                "doc": "Manage Apache 2 modules on RedHat family OSs"
              },
              {
                "name": "modfix",
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    "
              },
              {
                "name": "gentoo",
                "doc": "Manage Apache 2 modules on Gentoo"
              }
            ],
            "name": "a2mod",
            "doc": "Manage Apache 2 modules"
          }
        ],
        "checksums": {
          ".bundle/config": "7f1c988748783d2a8d455376eed1470c",
          ".fixtures.yml": "abe7da15beecab9f2023d55185f90bbb",
          ".nodeset.yml": "f2b857f9fc7a701ff118e28591c12925",
          ".travis.yml": "e18e7deea7676026028b8b287c36935a",
          "CHANGELOG": "adba9a757b6a95b68ed92d6963a2f8fd",
          "Gemfile": "3a276fb813c6fccbac8fa8893cff9299",
          "Gemfile.lock": "7d8f10dc30686dcf4c3365d1903390b1",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "Modulefile": "46b069926a4730f17d1462f1d4e82ad8",
          "README.md": "195dc5cf038b80a61a1574c9d52e8a31",
          "Rakefile": "0428ea3759a4692c91604396c406a9c1",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "lib/puppet/provider/a2mod.rb": "03ed73d680787dd126ea37a03be0b236",
          "lib/puppet/provider/a2mod/a2mod.rb": "c54df991f0cd63b90ceafad68d6670a5",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "lib/puppet/provider/a2mod/redhat.rb": "89f0a44bc469b6197bd648b8e606ff6b",
          "lib/puppet/type/a2mod.rb": "f230e4c3e6a111bc6dc79ab2287c9a29",
          "manifests/balancer.pp": "7ecb1536337337a1b81e34b5ea75ac84",
          "manifests/balancermember.pp": "d24354d979dd3dc112757f89d69902f5",
          "manifests/default_mods.pp": "a4bb67920d93a0cea882bd9ab196f3c6",
          "manifests/dev.pp": "606c3cbe27f32b61cfcbd15fb211890c",
          "manifests/init.pp": "ae2d79ff4bcfefe6b9d5573891dc30a3",
          "manifests/listen.pp": "5efc62bd75a0a9a9565b12bd8cb2a9e4",
          "manifests/mod.pp": "fc66b79d9086d8d296c372d605d31890",
          "manifests/mod/alias.pp": "f5d65ca4755f5464b32c5f95fd42a052",
          "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
          "manifests/mod/auth_kerb.pp": "7876ffdca25396285a26afae8dd030eb",
          "manifests/mod/autoindex.pp": "1b07e7737b4b27f977f80c289172a55b",
          "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
          "manifests/mod/cgi.pp": "8c9265733584e188196fe69fd3b9fdd7",
          "manifests/mod/cgid.pp": "63bd38d692ec78f351a6f234f29c2f16",
          "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
          "manifests/mod/dav_fs.pp": "93fce4f45e7a85e9d6eb2b745390eaba",
          "manifests/mod/dav_svn.pp": "85a9a3efe5cce6096d89cf29195e6dc1",
          "manifests/mod/deflate.pp": "f317ddf1cbfee52945d0433a3b25c728",
          "manifests/mod/dev.pp": "d6a001af402d8e82e952c8243c5e5321",
          "manifests/mod/dir.pp": "f3c3e6a21653ebda12f35b4b140e68d5",
          "manifests/mod/disk_cache.pp": "da3b7f47ce079f20db2d20e2d6539c11",
          "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
          "manifests/mod/headers.pp": "224438518465d09c951eb00dbaf8123c",
          "manifests/mod/info.pp": "9a45dd07a2681dc1fef9204de3f42bd9",
          "manifests/mod/ldap.pp": "f5033ee5197938d402854d8ffa9fb1d3",
          "manifests/mod/mime.pp": "c9ff4215f9308fd729e96a8d76d3fe1d",
          "manifests/mod/mime_magic.pp": "9c3a73f877de39c1db2178b827c4a86d",
          "manifests/mod/mpm_event.pp": "c1540d87cfb2b4a4631c4cc5d3e191f5",
          "manifests/mod/negotiation.pp": "9f5d70e4c961175a78a049fedaac85c9",
          "manifests/mod/passenger.pp": "4bb1e37a8c2c25319d5cc8e28f6112b4",
          "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
          "manifests/mod/php.pp": "247915331ce4ee815a0c032897a83157",
          "manifests/mod/prefork.pp": "f629fc3968e4ef8864d61d2552765995",
          "manifests/mod/proxy.pp": "e0e9f9963f720501d9b53ab9fb35f256",
          "manifests/mod/proxy_html.pp": "25cbac9bc2553bc3a18ede060a1a14fd",
          "manifests/mod/proxy_http.pp": "773d0fbb934440a24b3bc87517faa4d4",
          "manifests/mod/python.pp": "0b22df3d0e9a39ce948212e18329155f",
          "manifests/mod/reqtimeout.pp": "2ff860e05de7352d4a1bcd57c0ee08f0",
          "manifests/mod/rewrite.pp": "165fdccc8acc61e5fb088d9917861a3c",
          "manifests/mod/setenvif.pp": "32098aaab01723cae4c44d2fff8114ea",
          "manifests/mod/ssl.pp": "80ee4f522104719f07aa2be33d320973",
          "manifests/mod/status.pp": "1619d96a0d9b9534145209c98c683cbe",
          "manifests/mod/userdir.pp": "7166fee20a3e5b97d61dfae18fb745c9",
          "manifests/mod/vhost_alias.pp": "ea2d06875ed4f47ba65da0f7169e529e",
          "manifests/mod/worker.pp": "d3097be363188d34ca84cb438e4754e0",
          "manifests/mod/wsgi.pp": "86b284ccc6571fb702eb2647c975d3a3",
          "manifests/mod/xsendfile.pp": "ebe6241729f1b0d8125043a1f34caa54",
          "manifests/namevirtualhost.pp": "27bb9faa95147fcd15ec2aa0a95bc3af",
          "manifests/params.pp": "8d13a3b62cf742f40c018b330d72bcac",
          "manifests/php.pp": "a4478838b4cf9b0525b04db150cf55b8",
          "manifests/proxy.pp": "54e7657920b580546f3bef3980f2fd03",
          "manifests/python.pp": "2edb06e8119b67a5a62fb24fb280d3e5",
          "manifests/ssl.pp": "7f944d1c103a59ebd04d02e68af69f7a",
          "manifests/vhost.pp": "2febd978c6f3ade1e8d8780e3b6c83f4",
          "spec/classes/apache_spec.rb": "0f0b7d9910cf54eaad5a53acf5b2286d",
          "spec/classes/dev_spec.rb": "ecc212316f7801f427fa4c30ca65e259",
          "spec/classes/mod/auth_kerb_spec.rb": "70e2d94d84724a1b54aff6a9dede1ca6",
          "spec/classes/mod/dav_svn_spec.rb": "6b014a30e017a6cf30bdc4221e4a15b9",
          "spec/classes/mod/dev_spec.rb": "27a9d92460a3e62842b5e64f7154f893",
          "spec/classes/mod/dir_spec.rb": "e462dbea87eb1211e496f60e40538370",
          "spec/classes/mod/fcgid_spec.rb": "3bd6c0638347b763a88e44d5d7216cb0",
          "spec/classes/mod/info_spec.rb": "3921a934a1d41c6e1cce328a45b3cc1d",
          "spec/classes/mod/passenger_spec.rb": "521ed527cc9f43d8f9a4ccde03e84daf",
          "spec/classes/mod/perl_spec.rb": "0ba258605762d1fa25398a08e90157e4",
          "spec/classes/mod/php_spec.rb": "c4050e546d010f0dcb5a8bd580b5f3ed",
          "spec/classes/mod/prefork_spec.rb": "0f7de99f1fb58670f11fde4f7280e99e",
          "spec/classes/mod/proxy_html_spec.rb": "bf313b5dfdd2c9f3054f4b791c32a84c",
          "spec/classes/mod/python_spec.rb": "2b8079e833cbe6313435a72d9fc00cb9",
          "spec/classes/mod/ssl_spec.rb": "53b8ecefa9ce0af2562d8183c063167d",
          "spec/classes/mod/worker_spec.rb": "f3324663e5f93d1b73911276bd984e79",
          "spec/classes/mod/wsgi_spec.rb": "33dc2afdcc040397d8dec6726d439346",
          "spec/classes/params_spec.rb": "9b1984a3e8a485ff128512833400dfbd",
          "spec/defines/mod_spec.rb": "d82643d472be88a65cd202381099ed6f",
          "spec/defines/vhost_spec.rb": "1cf770757c53757aec11086cb2e6baf7",
          "spec/fixtures/modules/site_apache/templates/fake.conf.erb": "6b0431dd0b9a0bf803eb0684300c2cff",
          "spec/fixtures/system/distro_commands.yaml": "d9617961568154565a6725a3831408d3",
          "spec/spec.opts": "c407193b3d9028941ef59edd114f5968",
          "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
          "spec/spec_helper_system.rb": "61560d4eb97f7531d378462050a7c423",
          "spec/system/basic_spec.rb": "73bab7cf3eb0554b7d7801613c4b483e",
          "spec/system/class_spec.rb": "61b330fe643b16041cd3c1830fff48a6",
          "spec/system/mod_php_spec.rb": "b2c39f0a5f35f5c860e99798b6605413",
          "spec/system/prefork_worker_spec.rb": "d7b05867fd73464971919fd4393b3719",
          "spec/system/vhost_spec.rb": "8c1f24de9e391fb6c4ae88ed3084d9a3",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "24ad9db4f6ba0b4fc7ed77b509b4244c",
          "templates/httpd.conf.erb": "faf2a55d29d91b2bde7cbc004d4c95e3",
          "templates/listen.erb": "6286aa08f9e28caee54b1e1ee031b9d6",
          "templates/mod/alias.conf.erb": "669fc0a80839be3a81e2f4d4150c3ad6",
          "templates/mod/autoindex.conf.erb": "2421a3c6df32c7e38c2a7a22afdf5728",
          "templates/mod/cgid.conf.erb": "3d4e24001b50eb16561e45f5a8237b32",
          "templates/mod/dav_fs.conf.erb": "fdf1f8cff4708a282ef491d60868d1d7",
          "templates/mod/deflate.conf.erb": "44d54f557a5612be8da04c49dd6da862",
          "templates/mod/dir.conf.erb": "2485da78a2506c14bf51dde38dd03360",
          "templates/mod/disk_cache.conf.erb": "7d3e7a5ee3bd7b6a839924b06a60667f",
          "templates/mod/info.conf.erb": "bb48951beaeaf582d1a1023cb661ac32",
          "templates/mod/ldap.conf.erb": "a8a33f645497e0dbcec363c98be43795",
          "templates/mod/mime.conf.erb": "2fa646fe615e44d137a5d629f868c107",
          "templates/mod/mime_magic.conf.erb": "8a4f61bd7539871cb507cc95f5dbd205",
          "templates/mod/mpm_event.conf.erb": "80097a19d063a4f973465d9ef5c0c0bf",
          "templates/mod/negotiation.conf.erb": "47284b5580b986a6ba32580b6ffb9fd7",
          "templates/mod/passenger.conf.erb": "d9c51acf8e19cd8eaf5621ebfd6edba4",
          "templates/mod/php5.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
          "templates/mod/prefork.conf.erb": "f9ec5a7eaea78a19b04fa69f8acd8a84",
          "templates/mod/proxy.conf.erb": "ae1cd187ffbd5cc9b74f8711e313e96b",
          "templates/mod/proxy_html.conf.erb": "67546d56f2d6bb1860338257e3ac9d29",
          "templates/mod/reqtimeout.conf.erb": "81c51851ab7ee7942bef389dc7c0e985",
          "templates/mod/setenvif.conf.erb": "c7ede4173da1915b7ec088201f030c28",
          "templates/mod/ssl.conf.erb": "2567261763976c62a4388abb62ae1e03",
          "templates/mod/status.conf.erb": "da061291068f8e20cf33812373319c40",
          "templates/mod/userdir.conf.erb": "e5a7a7229dbf0de07bc034dd3d108ea2",
          "templates/mod/worker.conf.erb": "9661e7a59eaefb9f17d4c2680c0d243d",
          "templates/namevirtualhost.erb": "fbfca19a639e18e6c477e191344ac8ae",
          "templates/ports_header.erb": "afe35cb5747574b700ebaa0f0b3a626e",
          "templates/vhost.conf.erb": "9ea8ebbd06ae5b6176e8b176947d15d1",
          "templates/vhost/_aliases.erb": "3296d4b5fc00e7277b46356c33e71a70",
          "templates/vhost/_block.erb": "7cb56db9254729b54e8d30686c4f3b1a",
          "templates/vhost/_custom_fragment.erb": "67a4475275ec9208e6421b047b9ed7f4",
          "templates/vhost/_directories.erb": "e16574ce24a1d351e3efd610eca305bd",
          "templates/vhost/_proxy.erb": "3b43dc6a606719681c9b5274be65d60c",
          "templates/vhost/_rack.erb": "ebe187c1bdc81eec9c8e0d9026120b18",
          "templates/vhost/_redirect.erb": "0e2eed04e30240fbbd6c4ef7db6b7058",
          "templates/vhost/_requestheader.erb": "db1b0cdda069ae809b5b83b0871ef991",
          "templates/vhost/_rewrite.erb": "25959fb11677e6f0cc61b76d8a9fcde4",
          "templates/vhost/_scriptalias.erb": "0373372000ca3198594f32ac637a9462",
          "templates/vhost/_serveralias.erb": "2ef30c2152b9284463588f408f7f371f",
          "templates/vhost/_setenv.erb": "da6778b324857234c8441ef346d08969",
          "templates/vhost/_ssl.erb": "c405c430a1e7daf0568c5703d59dad92",
          "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "tests/vhost.pp": "70ce947e12f9b344a24f95a08e622c6c",
          "tests/vhost_ip_based.pp": "7d9f7b6976de7488ab6ff0a6e647fc73",
          "tests/vhost_ssl.pp": "9f3716bc15a9a6760f1d6cc3bf8ce8ac",
          "tests/vhosts_without_listen.pp": "a6692104056a56517b4365bcc816e7f4"
        },
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
        "license": "Apache 2.0"
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.8.1.tar.gz",
      "file_size": 52306,
      "file_md5": "debec531e3b92b356b6d01dbb9a8d6d4",
      "downloads": 6639,
      "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre><code>class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre><code>class { &#39;apache&#39;:\n  default_mods =&gt; false,\n  â¦\n}\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre><code>class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre><code>apache::vhost { &#39;first.example.com&#39;:\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/first&#39;,\n}\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre><code>apache::vhost { &#39;second.example.com&#39;:\n  port          =&gt; &#39;80&#39;,\n  docroot       =&gt; &#39;/var/www/second&#39;,\n  docroot_owner =&gt; &#39;third&#39;,\n  docroot_group =&gt; &#39;third&#39;,\n}\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre><code>apache::vhost { &#39;ssl.example.com&#39;:\n  port    =&gt; &#39;443&#39;,\n  docroot =&gt; &#39;/var/www/ssl&#39;,\n  ssl     =&gt; true,\n}\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre><code>apache::vhost { &#39;fourth.example.com&#39;:\n  port     =&gt; &#39;443&#39;,\n  docroot  =&gt; &#39;/var/www/fourth&#39;,\n  ssl      =&gt; true,\n  ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n  ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n}\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory \n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre><code>apache::vhost { &#39;subdomain.loc&#39;:\n  vhost_name =&gt; &#39;*&#39;,\n  port       =&gt; &#39;80&#39;,\n  virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n  docroot          =&gt; &#39;/var/www&#39;,\n  serveraliases    =&gt; [&#39;*.loc&#39;,],\n}\n</code></pre>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre><code>apache::vhost { &#39;default-ssl&#39;:\n  port            =&gt; 443,\n  ssl             =&gt; true,\n  docroot         =&gt; $docroot,\n  scriptalias     =&gt; $scriptalias,\n  serveradmin     =&gt; $serveradmin,\n  access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n  }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted, meaning Puppet will check the service status to start/stop it. Defaults to &#39;true&#39;, meaning the service is enabled/running.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;false&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::prefork</code> and <code>apache::mod::worker</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::worker</code> or <code>apache::mod::prefork</code> classes with parameters. Valid values are <code>worker</code>, <code>prefork</code>, or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and <code>worker</code> on Debian.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre><code>class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre><code>apache::mod { &#39;rewrite&#39;: }\napache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>deflate</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>fcgid</code></li>\n<li><code>info</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code></li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code></li>\n<li><code>userdir</code>*</li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code></li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template</p>\n\n<pre><code>class { &#39;apache::mod::ssl&#39;: }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre><code>class { &#39;apache&#39;:\n  default_vhost =&gt; false,\n}\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"ruby\"><code>aliases =&gt; [ { alias =&gt; &#39;/alias&#39;, path =&gt; &#39;/path/to/directory&#39; } ],\n</code></pre>\n\n<p>For <code>Alias</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes.  Usage will typically look like:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [\n    { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n    { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n  ],\n}\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p>The directives will be embedded within the <code>Directory</code> directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example: </p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n    addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n  } ],\n}\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n}\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n}\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n}\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n}\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow, Deny&#39; } ],\n}\n</code></pre>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n}\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n}\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:\n$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; },\n]</p>\n\n<p>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  proxy_pass       =&gt; $proxy_pass,\n}</p>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n  redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n}\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n}\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  request_headers =&gt; [\n    &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n    &#39;unset MirrorID&#39;,\n  ],\n}\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n  rewrite_base =&gt; &#39;/blog/&#39;,\n}\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n}\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n}\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code>.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/main/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre><code>apache::vhost { &#39;third.example.com&#39;:\n  port        =&gt; &#39;80&#39;,\n  docroot     =&gt; &#39;/var/www/third&#39;,\n  serveradmin =&gt; &#39;admin@example.com&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre><code>apache::vhost { &#39;sixth.example.com&#39;:\n  serveraliases =&gt; [\n    &#39;sixth.example.org&#39;,\n    &#39;sixth.example.net&#39;,\n  ],\n  port          =&gt; &#39;80&#39;,\n  docroot       =&gt; &#39;/var/www/fifth&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre><code>apache::vhost { &#39;eleventh.example.com&#39;:\n  port        =&gt; &#39;80&#39;,\n  docroot     =&gt; &#39;/var/www/eleventh&#39;,\n  scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre><code>apache::vhost { &#39;fifteenth.example.com&#39;:\n  port           =&gt; &#39;80&#39;,\n  docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n  rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre><code>#The non-ssl vhost\napache::vhost { &#39;first.example.com non-ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n}\n\n#The SSL vhost at the same domain\napache::vhost { &#39;first.example.com ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  port       =&gt; &#39;443&#39;,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre><code>apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n  servername      =&gt; &#39;sixteenth.example.com&#39;,\n  port            =&gt; &#39;80&#39;,\n  docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n  redirect_status =&gt; &#39;permanent&#39;\n  redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39; \n}\napache::vhost { &#39;sixteenth.example.com ssl&#39;:\n  servername =&gt; &#39;sixteenth.example.com&#39;,\n  port       =&gt; &#39;443&#39;,\n  docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre><code>apache::listen { &#39;80&#39;: }\napache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre><code>apache::vhost { &#39;first.example.com&#39;:\n  ip       =&gt; &#39;10.0.0.10&#39;,\n  docroot  =&gt; &#39;/var/www/first&#39;,\n  ip_based =&gt; true,\n}\napache::vhost { &#39;second.example.com&#39;:\n  ip       =&gt; &#39;10.0.0.11&#39;,\n  docroot  =&gt; &#39;/var/www/second&#39;,\n  ip_based =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre><code>apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  ip         =&gt; &#39;10.0.0.10&#39;,\n  port       =&gt; &#39;80&#39;,\n  ip_based   =&gt; true,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n}\napache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  ip         =&gt; &#39;10.0.0.10&#39;,\n  port       =&gt; &#39;443&#39;,\n  ip_based   =&gt; true,\n  docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre><code>apache::vhost { &#39;second.example.com&#39;:\n  ip      =&gt; &#39;10.0.0.20&#39;,\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/second&#39;,\n}\napache::vhost { &#39;third.example.com&#39;:\n  ip      =&gt; &#39;10.0.0.20&#39;,\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/third&#39;,\n}\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre><code>apache::vhost { &#39;fourth.example.com&#39;:\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/fourth&#39;,\n  add_listen =&gt; false,\n}\napache::vhost { &#39;fifth.example.com&#39;:\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/fifth&#39;,\n  add_listen =&gt; false,\n}\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre><code>class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre><code>apache::listen { &#39;80&#39;: }\napache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre><code>class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre><code>  @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n    balancer_cluster =&gt; &#39;puppet00&#39;,\n    url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n    options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n  }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre><code>  apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre><code>  apache::balancer { &#39;puppet01&#39;:\n    proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n  }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, and CentOS 5.8.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We canât access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": "<section class=\"plaintext\"><pre>2013-07-26 Release 0.8.1\nBugfixes:\n- Update `apache::mpm_module` detection for worker&#x2F;prefork\n- Update `apache::mod::cgi` and `apache::mod::cgid` detection for\nworker&#x2F;prefork\n\n2013-07-16 Release 0.8.0\nFeatures:\n- Add `servername` parameter to `apache` class\n- Add `proxy_set` parameter to `apache::balancer` define\n\nBugfixes:\n- Fix ordering for multiple `apache::balancer` clusters\n- Fix symlinking for sites-available on Debian-based OSs\n- Fix dependency ordering for recursive confdir management\n- Fix `apache::mod::*` to notify the service on config change\n- Documentation updates\n\n2013-07-09 Release 0.7.0\nChanges:\n- Essentially rewrite the module -- too many to list\n- `apache::vhost` has many abilities -- see README.md for details\n- `apache::mod::*` classes provide httpd mod-loading capabilities\n- `apache` base class is much more configurable\n\nBugfixes:\n- Many. And many more to come\n\n2013-03-2 Release 0.6.0\n- update travis tests (add more supported versions)\n- add access log_parameter\n- make purging of vhost dir configurable\n\n2012-08-24 Release 0.4.0\nChanges:\n- `include apache` is now required when using apache::mod::*\n\nBugfixes:\n- Fix syntax for validate_re\n- Fix formatting in vhost template\n- Fix spec tests such that they pass\n\n2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2013-07-26 10:57:40 -0700",
      "updated_at": "2013-07-26 10:57:40 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.10.0",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.10.0",
      "metadata": {
        "name": "puppetlabs-apache",
        "version": "0.10.0",
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "author": "puppetlabs",
        "license": "Apache 2.0",
        "summary": "Puppet module for Apache",
        "description": "Module for Apache configuration",
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
        "dependencies": [
          {
            "name": "puppetlabs/stdlib",
            "version_requirement": ">= 2.4.0"
          },
          {
            "name": "puppetlabs/concat",
            "version_requirement": ">= 1.0.0"
          }
        ],
        "types": [
          {
            "name": "a2mod",
            "doc": "Manage Apache 2 modules",
            "properties": [
              {
                "name": "ensure",
                "doc": "The basic property that the resource should be in.  Valid values are `present`, `absent`."
              }
            ],
            "parameters": [
              {
                "name": "name",
                "doc": "The name of the module to be managed"
              },
              {
                "name": "lib",
                "doc": "The name of the .so library to be loaded"
              },
              {
                "name": "identifier",
                "doc": "Module identifier string used by LoadModule. Default: module-name_module"
              }
            ],
            "providers": [
              {
                "name": "a2mod",
                "doc": "Manage Apache 2 modules on Debian and Ubuntu\n\nRequired binaries: `a2enmod`, `a2dismod`, `apache2ctl`.  Default for `operatingsystem` == `debian, ubuntu`."
              },
              {
                "name": "gentoo",
                "doc": "Manage Apache 2 modules on Gentoo\n\nDefault for `operatingsystem` == `gentoo`."
              },
              {
                "name": "modfix",
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    "
              },
              {
                "name": "redhat",
                "doc": "Manage Apache 2 modules on RedHat family OSs\n\nRequired binaries: `apachectl`.  Default for `osfamily` == `redhat`."
              }
            ]
          }
        ],
        "checksums": {
          "CHANGELOG.md": "2ed7b976e9c4542fd1626006cb44783b",
          "CONTRIBUTING.md": "5520c75162725951733fa7d88e57f31f",
          "Gemfile": "c1cd7b0477f1a99e0156a471aac6cd58",
          "Gemfile.lock": "13733647826ec5cff955b593fd9a9c5c",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "Modulefile": "560b5e9d2b04ddbc23f3803645bfbda5",
          "README.md": "c937c2d34a76185fe8cfc61d671c47ec",
          "README.passenger.md": "0316c4a152fd51867ece8ea403250fcb",
          "Rakefile": "0428ea3759a4692c91604396c406a9c1",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "lib/puppet/provider/a2mod/a2mod.rb": "d986d8e8373f3f31c97359381c180628",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "lib/puppet/provider/a2mod/redhat.rb": "c39b80e75e7d0666def31c2a6cdedb0b",
          "lib/puppet/provider/a2mod.rb": "03ed73d680787dd126ea37a03be0b236",
          "lib/puppet/type/a2mod.rb": "9042ccc045bfeecca28bebb834114f05",
          "manifests/balancer.pp": "c635b2d2dec8b5972509960152e169a3",
          "manifests/balancermember.pp": "8afe51921a42545402fa457820162ae2",
          "manifests/confd/no_accf.pp": "c44b75749a3a56c0306433868d6b762c",
          "manifests/default_confd_files.pp": "7cbc2f15bfd34eb2f5160c671775c0f6",
          "manifests/default_mods/load.pp": "b3f21b3186216795dd18ee051f01e3c2",
          "manifests/default_mods.pp": "ea267ac599fc3d76db6298c3710cee60",
          "manifests/dev.pp": "639ba24711be5d7cea0c792e05008c86",
          "manifests/init.pp": "ffc69874d88f7ac581138fbf47d04d04",
          "manifests/listen.pp": "5efc62bd75a0a9a9565b12bd8cb2a9e4",
          "manifests/mod/alias.pp": "3c144a2aa8231de61e68eced58dc9287",
          "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
          "manifests/mod/auth_kerb.pp": "7876ffdca25396285a26afae8dd030eb",
          "manifests/mod/authnz_ldap.pp": "10c795251b2327614ef0b433591ed128",
          "manifests/mod/autoindex.pp": "1b07e7737b4b27f977f80c289172a55b",
          "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
          "manifests/mod/cgi.pp": "8c9265733584e188196fe69fd3b9fdd7",
          "manifests/mod/cgid.pp": "d218c11d4798453d6075f8f1553c94de",
          "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
          "manifests/mod/dav_fs.pp": "a166fc9b780abea2eec1ab723ce3a773",
          "manifests/mod/dav_svn.pp": "641911969d921123865e6566954c0edb",
          "manifests/mod/deflate.pp": "f317ddf1cbfee52945d0433a3b25c728",
          "manifests/mod/dev.pp": "d6a001af402d8e82e952c8243c5e5321",
          "manifests/mod/dir.pp": "f3c3e6a21653ebda12f35b4b140e68d5",
          "manifests/mod/disk_cache.pp": "f19193d4f119224e19713e0c96a0de6d",
          "manifests/mod/event.pp": "e48aefd215dd61980f0b9c4d16ef094a",
          "manifests/mod/expires.pp": "a9b7537846258af84f12b8ce3510dfa8",
          "manifests/mod/fastcgi.pp": "fec8afea5424f25109a0b7ca912b16b1",
          "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
          "manifests/mod/headers.pp": "224438518465d09c951eb00dbaf8123c",
          "manifests/mod/info.pp": "9a45dd07a2681dc1fef9204de3f42bd9",
          "manifests/mod/itk.pp": "7c32234950dc74354b06a2da15197179",
          "manifests/mod/ldap.pp": "f5033ee5197938d402854d8ffa9fb1d3",
          "manifests/mod/mime.pp": "0fa7835f270e511616927afe01a0526c",
          "manifests/mod/mime_magic.pp": "fe249dd7e1faa5ec5dd936877c64e856",
          "manifests/mod/negotiation.pp": "9f5d70e4c961175a78a049fedaac85c9",
          "manifests/mod/nss.pp": "f7a7efaac854599aa7b872665eb5d93c",
          "manifests/mod/passenger.pp": "e6c48c22a69933b0975609f2bacf2b5d",
          "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
          "manifests/mod/peruser.pp": "3a2eaab65d7be2373740302eac33e5b1",
          "manifests/mod/php.pp": "a3725f487f58eb354c84a4fee704daa9",
          "manifests/mod/prefork.pp": "84b64cb7b46ab0c544dfecb476d65e3d",
          "manifests/mod/proxy.pp": "eb1e8895edee5e97edc789923fc128c8",
          "manifests/mod/proxy_ajp.pp": "f9b72f1339cc03f068fa684f38793120",
          "manifests/mod/proxy_balancer.pp": "5ab6987614f8a1afde3a8b701fbbe22a",
          "manifests/mod/proxy_html.pp": "1a96fd029a305eb88639bf5baf06abdd",
          "manifests/mod/proxy_http.pp": "773d0fbb934440a24b3bc87517faa4d4",
          "manifests/mod/python.pp": "0b22df3d0e9a39ce948212e18329155f",
          "manifests/mod/reqtimeout.pp": "2ff860e05de7352d4a1bcd57c0ee08f0",
          "manifests/mod/rewrite.pp": "165fdccc8acc61e5fb088d9917861a3c",
          "manifests/mod/rpaf.pp": "1125f0c5296ca584fa71de474c95475f",
          "manifests/mod/setenvif.pp": "32098aaab01723cae4c44d2fff8114ea",
          "manifests/mod/ssl.pp": "c8ab5728fda7814dace9a8eebf13476c",
          "manifests/mod/status.pp": "d7366470082970ac62984581a0ea3fd7",
          "manifests/mod/suphp.pp": "c42d20b057007eff1a75595fc3fe7adf",
          "manifests/mod/userdir.pp": "7166fee20a3e5b97d61dfae18fb745c9",
          "manifests/mod/vhost_alias.pp": "ea2d06875ed4f47ba65da0f7169e529e",
          "manifests/mod/worker.pp": "b1809ac41b322b090be410d41e57157e",
          "manifests/mod/wsgi.pp": "a0073502c2267d7e72caaf9f4942ab7c",
          "manifests/mod/xsendfile.pp": "ebe6241729f1b0d8125043a1f34caa54",
          "manifests/mod.pp": "2d4ab8907db92e50c5ed6e1357fed9fb",
          "manifests/namevirtualhost.pp": "27bb9faa95147fcd15ec2aa0a95bc3af",
          "manifests/package.pp": "c32ba42fe3ab4acc49d2e28258108ba1",
          "manifests/params.pp": "221fa0dcbdd00066e074bc443c0d8fdb",
          "manifests/peruser/multiplexer.pp": "712017c1d1cee710cd7392a4c4821044",
          "manifests/peruser/processor.pp": "293fcb9d2e7ae98b36f544953e33074e",
          "manifests/php.pp": "a4478838b4cf9b0525b04db150cf55b8",
          "manifests/proxy.pp": "54e7657920b580546f3bef3980f2fd03",
          "manifests/python.pp": "2edb06e8119b67a5a62fb24fb280d3e5",
          "manifests/service.pp": "56e90e48165989a7df3360dc55b01360",
          "manifests/ssl.pp": "7f944d1c103a59ebd04d02e68af69f7a",
          "manifests/vhost/custom.pp": "58bd40d3d12d01549545b85667855d38",
          "manifests/vhost.pp": "41c68c9ef48c3ef9d1c4feb167d71dd2",
          "spec/classes/apache_spec.rb": "70ebba6cbb794fe0239b0e353796bae9",
          "spec/classes/dev_spec.rb": "051fcee20c1b04a7d52481c4a23682b3",
          "spec/classes/mod/auth_kerb_spec.rb": "229c730ac88b05c4ea4e64d395f26f27",
          "spec/classes/mod/authnz_ldap_spec.rb": "19cef4733927bc3548af8c75a66a8b11",
          "spec/classes/mod/dav_svn_spec.rb": "b41e721c0b5c7bac1295187f89d27ab7",
          "spec/classes/mod/dev_spec.rb": "81d37ad0a51e6cae22e79009e719d648",
          "spec/classes/mod/dir_spec.rb": "a8d473ce36e0aaec0f9f3463cd4bb549",
          "spec/classes/mod/event_spec.rb": "cce445ab0a7140bdb50897c6f692ec17",
          "spec/classes/mod/fastcgi_spec.rb": "ff35691208f95aee61150682728c2891",
          "spec/classes/mod/fcgid_spec.rb": "ca3ee773bdf9ac82e63edee4411d0281",
          "spec/classes/mod/info_spec.rb": "90f35932812cc86058b6ccfd48eba6e8",
          "spec/classes/mod/itk_spec.rb": "261aa7759e232f07d70b102f0e8ab828",
          "spec/classes/mod/mime_magic_spec.rb": "a3748b9bd66514b56aa29a377a233606",
          "spec/classes/mod/passenger_spec.rb": "ece983e4b228f99f670a5f98878f964b",
          "spec/classes/mod/perl_spec.rb": "123e73d8de752e83336bed265a354c08",
          "spec/classes/mod/peruser_spec.rb": "72d00a427208a3bc0dda5578d36e7b0e",
          "spec/classes/mod/php_spec.rb": "3907e0075049b0d3cdadb17445acae2d",
          "spec/classes/mod/prefork_spec.rb": "537882d6f314a17c3ead6f51a67b20b8",
          "spec/classes/mod/proxy_html_spec.rb": "3587873d56172c431f93a78845b7d24e",
          "spec/classes/mod/python_spec.rb": "9011cd2ac1d452daec091e5cf337dbe7",
          "spec/classes/mod/rpaf_spec.rb": "b419712d8e6acbe00f5c4034161e40af",
          "spec/classes/mod/ssl_spec.rb": "969111556de99092152735764194d267",
          "spec/classes/mod/status_spec.rb": "a1f70673810840e591ac25a1803c39d7",
          "spec/classes/mod/suphp_spec.rb": "1da3f6561f19d8c7f2a71655fa7772ea",
          "spec/classes/mod/worker_spec.rb": "cf005d3606362360f7fcccce04e53be6",
          "spec/classes/mod/wsgi_spec.rb": "37ad1d623b1455e237a75405776d58d9",
          "spec/classes/params_spec.rb": "9b1984a3e8a485ff128512833400dfbd",
          "spec/classes/service_spec.rb": "d522ae1652cc87a4b9c6e33034ee5774",
          "spec/defines/mod_spec.rb": "80d167b475191b63713087462e960a44",
          "spec/defines/vhost_spec.rb": "89905755a72b938e99f4a01ef64203e9",
          "spec/fixtures/modules/site_apache/templates/fake.conf.erb": "6b0431dd0b9a0bf803eb0684300c2cff",
          "spec/spec.opts": "c407193b3d9028941ef59edd114f5968",
          "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
          "spec/spec_helper_system.rb": "c54584d03120766bac28221597920d3d",
          "spec/system/basic_spec.rb": "73bab7cf3eb0554b7d7801613c4b483e",
          "spec/system/class_spec.rb": "6f29d603a809ae6208243911c0b250e4",
          "spec/system/default_mods_spec.rb": "fff758602ee95ee67cad2abc71bc54fb",
          "spec/system/itk_spec.rb": "c645ac3b306da4d3733c33f662959e36",
          "spec/system/mod_php_spec.rb": "b823cdcfe4288359a3d2dfd70868691d",
          "spec/system/mod_suphp_spec.rb": "9d38045b3dcb052153e7c08164301c13",
          "spec/system/prefork_worker_spec.rb": "a6f1b3fb3024a0dce75e45a7c2d6cfd0",
          "spec/system/service_spec.rb": "3cd71e4e40790e1624487fd233f18a07",
          "spec/system/vhost_spec.rb": "86e147833f1acebf2b08451f02919581",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "24ad9db4f6ba0b4fc7ed77b509b4244c",
          "templates/confd/no-accf.conf.erb": "a614f28c4b54370e4fa88403dfe93eb0",
          "templates/httpd.conf.erb": "6e768a748deb4737a8faf82ea80196c1",
          "templates/listen.erb": "6286aa08f9e28caee54b1e1ee031b9d6",
          "templates/mod/alias.conf.erb": "e65c27aafd88c825ab35b34dd04221ea",
          "templates/mod/authnz_ldap.conf.erb": "12c9a1482694ddad3143e5eef03fb531",
          "templates/mod/autoindex.conf.erb": "2421a3c6df32c7e38c2a7a22afdf5728",
          "templates/mod/cgid.conf.erb": "3d4e24001b50eb16561e45f5a8237b32",
          "templates/mod/dav_fs.conf.erb": "fdf1f8cff4708a282ef491d60868d1d7",
          "templates/mod/deflate.conf.erb": "44d54f557a5612be8da04c49dd6da862",
          "templates/mod/dir.conf.erb": "2485da78a2506c14bf51dde38dd03360",
          "templates/mod/disk_cache.conf.erb": "7d3e7a5ee3bd7b6a839924b06a60667f",
          "templates/mod/event.conf.erb": "dc4223dfb2729e54d4a33cdec03bd518",
          "templates/mod/fastcgi.conf.erb": "8692d14c4462335c845eede011f6db2f",
          "templates/mod/info.conf.erb": "bb48951beaeaf582d1a1023cb661ac32",
          "templates/mod/itk.conf.erb": "eff84b78e4f2f8c5c3a2e9fc4b8aad16",
          "templates/mod/ldap.conf.erb": "a8a33f645497e0dbcec363c98be43795",
          "templates/mod/mime.conf.erb": "8f953519790a5900369fb656054cae35",
          "templates/mod/mime_magic.conf.erb": "f910e66299cba6ead5f0444e522a0c76",
          "templates/mod/mpm_event.conf.erb": "80097a19d063a4f973465d9ef5c0c0bf",
          "templates/mod/negotiation.conf.erb": "47284b5580b986a6ba32580b6ffb9fd7",
          "templates/mod/nss.conf.erb": "9a9667d308f0783448ca2689b9fc2b93",
          "templates/mod/passenger.conf.erb": "68a350cf4cf037c2ae64f015cc7a61a3",
          "templates/mod/peruser.conf.erb": "ac1c2bf2a771ed366f688ec337d6da02",
          "templates/mod/php5.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
          "templates/mod/prefork.conf.erb": "f9ec5a7eaea78a19b04fa69f8acd8a84",
          "templates/mod/proxy.conf.erb": "38668e1cb5a19d7708e9d26f99e21264",
          "templates/mod/proxy_html.conf.erb": "67546d56f2d6bb1860338257e3ac9d29",
          "templates/mod/reqtimeout.conf.erb": "81c51851ab7ee7942bef389dc7c0e985",
          "templates/mod/rpaf.conf.erb": "5447539c083ae54f3a9e93c1ac8c988b",
          "templates/mod/setenvif.conf.erb": "c7ede4173da1915b7ec088201f030c28",
          "templates/mod/ssl.conf.erb": "907dc25931c6bdb7ce4b61a81be788f8",
          "templates/mod/status.conf.erb": "afb05015a8337b232127199aa085a023",
          "templates/mod/suphp.conf.erb": "05bb7b3ea23976b032ce405bfd4edd18",
          "templates/mod/userdir.conf.erb": "e5a7a7229dbf0de07bc034dd3d108ea2",
          "templates/mod/worker.conf.erb": "9661e7a59eaefb9f17d4c2680c0d243d",
          "templates/mod/wsgi.conf.erb": "125949c9120aee15303ad755e105d852",
          "templates/namevirtualhost.erb": "fbfca19a639e18e6c477e191344ac8ae",
          "templates/ports_header.erb": "afe35cb5747574b700ebaa0f0b3a626e",
          "templates/vhost/_aliases.erb": "e5e3ba8a9ce994334644bd19ad342d8b",
          "templates/vhost/_block.erb": "7cb56db9254729b54e8d30686c4f3b1a",
          "templates/vhost/_custom_fragment.erb": "67a4475275ec9208e6421b047b9ed7f4",
          "templates/vhost/_directories.erb": "eca2a0abc3a23d1e08b1132baeade372",
          "templates/vhost/_error_document.erb": "81d3007c1301a5c5f244c082cfee9de2",
          "templates/vhost/_fastcgi.erb": "e0a1702445e9be189dabe04b829acd7f",
          "templates/vhost/_itk.erb": "db5b12d7236dbc19b62ce13625d9d60e",
          "templates/vhost/_proxy.erb": "1f9cc42aaafb80a658294fc39cf61395",
          "templates/vhost/_rack.erb": "ebe187c1bdc81eec9c8e0d9026120b18",
          "templates/vhost/_redirect.erb": "0e2eed04e30240fbbd6c4ef7db6b7058",
          "templates/vhost/_requestheader.erb": "db1b0cdda069ae809b5b83b0871ef991",
          "templates/vhost/_rewrite.erb": "dcf423c014bdb222bcf15314a2f3a41f",
          "templates/vhost/_scriptalias.erb": "9c714277eaad73d05d073c1b6c62106a",
          "templates/vhost/_serveralias.erb": "2ef30c2152b9284463588f408f7f371f",
          "templates/vhost/_setenv.erb": "da6778b324857234c8441ef346d08969",
          "templates/vhost/_ssl.erb": "e9fca0c12325af10797b80d827dfddee",
          "templates/vhost/_suphp.erb": "6ea2553a4c4284d41b435fa2f4f4edc7",
          "templates/vhost/_wsgi.erb": "3bbab1e5757dfb584504f05354275f81",
          "templates/vhost.conf.erb": "5dc0337da18ff36184df07343982dc93",
          "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "tests/mod_load_params.pp": "5981af4d625a906fce1cedeb3f70cb90",
          "tests/mods.pp": "0085911ba562b7e56ad8d793099c9240",
          "tests/mods_custom.pp": "9afd068edce0538b5c55a3bc19f9c24a",
          "tests/php.pp": "60e7939034d531dd6b95af35338bcbe7",
          "tests/vhost.pp": "164bec943d7d5eee1ad6d6c41fe7c28e",
          "tests/vhost_directories.pp": "b79a3bcf72474ce4e3b75f6a70cbf272",
          "tests/vhost_ip_based.pp": "7d9f7b6976de7488ab6ff0a6e647fc73",
          "tests/vhost_ssl.pp": "9f3716bc15a9a6760f1d6cc3bf8ce8ac",
          "tests/vhosts_without_listen.pp": "a6692104056a56517b4365bcc816e7f4"
        }
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.10.0.tar.gz",
      "file_size": 85004,
      "file_md5": "4036f35903264c9b6e3289455cfee225",
      "downloads": 6389,
      "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-apache\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-apache.png?branch=main\" alt=\"Build Status\"></a></p>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n<li><code>/etc/make.conf</code> on FreeBSD</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_mods        =&gt; false,\n      default_confd_files =&gt; false,\n    }\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/first&#39;,\n    }\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/second&#39;,\n      docroot_owner =&gt; &#39;third&#39;,\n      docroot_group =&gt; &#39;third&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;ssl.example.com&#39;:\n      port    =&gt; &#39;443&#39;,\n      docroot =&gt; &#39;/var/www/ssl&#39;,\n      ssl     =&gt; true,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port     =&gt; &#39;443&#39;,\n      docroot  =&gt; &#39;/var/www/fourth&#39;,\n      ssl      =&gt; true,\n      ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n      ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with IP address different than &#39;*&#39;</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.example.com&#39;:\n      ip      =&gt; &#39;127.0.0.1&#39;,\n      port    =&gt; &#39;80&#39;,\n      docrout =&gt; &#39;/var/www/subdomain&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory\n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.loc&#39;:\n      vhost_name =&gt; &#39;*&#39;,\n      port       =&gt; &#39;80&#39;,\n      virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n      docroot          =&gt; &#39;/var/www&#39;,\n      serveraliases    =&gt; [&#39;*.loc&#39;,],\n    }\n</code></pre>\n\n<p>To set up a virtual host with suPHP</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;suphp.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/home/appuser/myphpapp&#39;,\n      suphp_addhandler    =&gt; &#39;x-httpd-php&#39;,\n      suphp_engine        =&gt; &#39;on&#39;,\n      suphp_configpath    =&gt; &#39;/etc/php5/apache2&#39;,\n      directories         =&gt; { path =&gt; &#39;/home/appuser/myphpapp&#39;,\n        &#39;suphp&#39;           =&gt; { user =&gt; &#39;myappuser&#39;, group =&gt; &#39;myappgroup&#39; },\n      }\n    }\n</code></pre>\n\n<p>To set up a virtual host with WSGI</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wsgi.example.com&#39;:\n      port                        =&gt; &#39;80&#39;,\n      docroot                     =&gt; &#39;/var/www/pythonapp&#39;,\n      wsgi_daemon_process         =&gt; &#39;wsgi&#39;,\n      wsgi_daemon_process_options =&gt;\n        { processes =&gt; &#39;2&#39;, threads =&gt; &#39;15&#39;, display-name =&gt; &#39;%{GROUP}&#39; },\n      wsgi_process_group          =&gt; &#39;wsgi&#39;,\n      wsgi_script_aliases         =&gt; { &#39;/&#39; =&gt; &#39;/var/www/demo.wsgi&#39; },\n    }\n</code></pre>\n\n<p>Starting 2.2.16, httpd supports <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_dir.html#fallbackresource\">FallbackResource</a> which is a simple replace for common RewriteRules:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wordpress.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/var/www/wordpress&#39;,\n      fallbackresource    =&gt; &#39;/index.php&#39;,\n    }\n</code></pre>\n\n<p>Please note that the <code>disabled</code> argument to FallbackResource is only supported since 2.2.24.</p>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_confd_files</code></h5>\n\n<p>Generates default set of include-able apache configuration files under  <code>${apache::confd_dir}</code> directory. These configuration files correspond to what is usually installed with apache package on given platform.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;default-ssl&#39;:\n      port            =&gt; 443,\n      ssl             =&gt; true,\n      docroot         =&gt; $docroot,\n      scriptalias     =&gt; $scriptalias,\n      serveradmin     =&gt; $serveradmin,\n      access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n      }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian, <code>/usr/local/etc/apache22/server.crt</code> for FreeBSD). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian, <code>/usr/local/etc/apache22/server.key</code> for FreeBSD). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_name</code></h5>\n\n<p>Name of apache service to run. Defaults to: <code>&#39;httpd&#39;</code> on RedHat, <code>&#39;apache2&#39;</code> on Debian, and <code>&#39;apache22&#39;</code> on FreeBSD.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted. Defaults to &#39;true&#39;.</p>\n\n<h5><code>service_ensure</code></h5>\n\n<p>Determines whether the service should be running. Can be set to &#39;undef&#39; which is useful when you want to let the service be managed by some other application like pacemaker. Defaults to &#39;running&#39;.</p>\n\n<h5><code>purge_configs</code></h5>\n\n<p>Removes all other apache configs and vhosts, which is automatically set to true. Setting this to false is a stopgap measure to allow the apache module to coexist with existing or otherwise managed configuration. It is recommended that you move your configuration entirely to resources within this module.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>server_root</code></h5>\n\n<p>A value to be set as <code>ServerRoot</code> in main configuration file (<code>httpd.conf</code>). Defaults to <code>/etc/httpd</code> on RedHat, <code>/etc/apache2</code> on Debian and <code>/usr/local</code> on FreeBSD.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;On&#39;.</p>\n\n<h5><code>server_root</code></h5>\n\n<p>A value to be set as <code>ServerRoot</code> in main configuration file (<code>httpd.conf</code>). Defaults to <code>/etc/httpd</code> on RedHat and <code>/etc/apache2</code> on Debian.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>httpd_dir</code></h5>\n\n<p>Changes the base location of the configuration directories used for the service. This is useful for specially repackaged HTTPD builds but may have unintended consequences when used in combination with the default distribution packages. Default is based on your OS.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::event</code>, <code>apache::mod::itk</code>, <code>apache::mod::peruser</code>, <code>apache::mod::prefork</code> and <code>apache::mod::worker</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::event</code>, <code>apache::mod::itk</code>, <code>apache::mod::peruser</code>,  <code>apache::mod::prefork</code> or <code>apache::mod::worker</code> classes with parameters. All possible values are <code>event</code>, <code>itk</code>, <code>peruser</code>, <code>prefork</code>, <code>worker</code> (valid values depend on agent&#39;s OS), or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and FreeBSD and <code>worker</code> on Debian. Note: on FreeBSD switching between different mpm modules is quite difficult (but possible). Before changing <code>$mpm_module</code> one has to deinstall all packages that depend on currently installed <code>apache</code>.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h5><code>keepalive</code></h5>\n\n<p>Setting this allows you to enable persistent connections.</p>\n\n<h5><code>keepalive_timeout</code></h5>\n\n<p>Amount of time the server will wait for subsequent requests on a persistent connection. Defaults to &#39;15&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Changes the location of the directory Apache log files are placed in. Defaut is based on your OS.</p>\n\n<h5><code>log_level</code></h5>\n\n<p>Changes the verbosity level of the error log. Defaults to &#39;warn&#39;. Valid values are <code>emerg</code>, <code>alert</code>, <code>crit</code>, <code>error</code>, <code>warn</code>, <code>notice</code>, <code>info</code> or <code>debug</code>.</p>\n\n<h5><code>ports_file</code></h5>\n\n<p>Changes the name of the file containing Apache ports configuration. Default is <code>${conf_dir}/ports.conf</code>.</p>\n\n<h5><code>server_tokens</code></h5>\n\n<p>Controls how much information Apache sends to the browser about itself and the operating system. See Apache documentation for &#39;ServerTokens&#39;. Defaults to &#39;OS&#39;.</p>\n\n<h5><code>server_signature</code></h5>\n\n<p>Allows the configuration of a trailing footer line under server-generated documents. See Apache documentation for &#39;ServerSignature&#39;. Defaults to &#39;On&#39;.</p>\n\n<h5><code>trace_enable</code></h5>\n\n<p>Controls, how TRACE requests per RFC 2616 are handled. See Apache documentation for &#39;TraceEnable&#39;. Defaults to &#39;On&#39;.</p>\n\n<h5><code>manage_user</code></h5>\n\n<p>Setting this to false will avoid the user resource to be created by this module. This is useful when you already have a user created in another puppet module and that you want to used it to run apache. Without this, it would result in a duplicate resource error.</p>\n\n<h5><code>manage_group</code></h5>\n\n<p>Setting this to false will avoid the group resource to be created by this module. This is useful when you already have a group created in another puppet module and that you want to used it for apache. Without this, it would result in a duplicate resource error.</p>\n\n<h5><code>package_ensure</code></h5>\n\n<p>Allow control over the package ensure statement. This is useful if you want to make sure apache is always at the latest version or whether it is only installed.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre lang=\"puppet\"><code>    apache::mod { &#39;rewrite&#39;: }\n    apache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>dav_svn</code></li>\n<li><code>deflate</code></li>\n<li><code>dev</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>event</code></li>\n<li><code>fastcgi</code></li>\n<li><code>fcgid</code></li>\n<li><code>headers</code></li>\n<li><code>info</code></li>\n<li><code>itk</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code>*</li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>nss</code>*</li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>peruser</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_ajp</code></li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>rewrite</code></li>\n<li><code>rpaf</code>*</li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code>*</li>\n<li><code>suphp</code></li>\n<li><code>userdir</code>*</li>\n<li><code>vhost_alias</code></li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code> (see <a href=\"#class-apachemodwsgi\">apache::mod::wsgi</a> below)</li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template. These are the defaults:</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::ssl&#39;:\n      ssl_compression =&gt; false,\n      ssl_options     =&gt; [ &#39;StdEnvVars&#39; ],\n  }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Class: <code>apache::mod::wsgi</code></h4>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::wsgi&#39;:\n      wsgi_socket_prefix =&gt; &quot;\\${APACHE_RUN_DIR}WSGI&quot;,\n      wsgi_python_home   =&gt; &#39;/path/to/virtenv&#39;,\n      wsgi_python_path   =&gt; &#39;/path/to/virtenv/site-packages&#39;,\n    }\n</code></pre>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_vhost =&gt; false,\n    }\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_syslog</code></h5>\n\n<p>Sends all access log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> or <code>AliasMatch</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre><code>aliases =&gt; [\n  { aliasmatch =&gt; &#39;^/image/(.*)\\.jpg$&#39;, path =&gt; &#39;/files/jpg.images/$1.jpg&#39; }\n  { alias      =&gt; &#39;/image&#39;,             path =&gt; &#39;/ftp/pub/image&#39; },\n],\n</code></pre>\n\n<p>For <code>Alias</code> and <code>AliasMatch</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block. The <code>Alias</code> and <code>AliasMatch</code> directives are created in the order specified in the <code>aliases</code> paramter. As described in the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a> more specific <code>Alias</code> or <code>AliasMatch</code> directives should come before the more general ones to avoid shadowing.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes. An optional <code>provider</code> defaults to <code>directory</code>.  Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n        { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n      ],\n    }\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p><code>provider</code> can be set to any of <code>directory</code>, <code>files</code>, or <code>location</code>. If the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#files\">pathspec starts with a <code>~</code></a>, httpd will interpret this as the equivalent of <code>DirectoryMatch</code>, <code>FilesMatch</code>, or <code>LocationMatch</code>, respectively.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;files.example.net&#39;:\n      docroot     =&gt; &#39;/var/www/files&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;~ (\\.swp|\\.bak|~)$&#39;, &#39;provider&#39; =&gt; &#39;files&#39;, &#39;deny&#39; =&gt; &#39;from all&#39; },\n      ],\n    }\n</code></pre>\n\n<p>The directives will be embedded within the <code>Directory</code> (<code>Files</code>, or <code>Location</code>) directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n        addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n      } ],\n    }\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n    }\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>error_documents</code></h6>\n\n<p>A list of hashes which can be used to override the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#errordocument\">ErrorDocument</a> settings for this directory. Example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      directories =&gt; [ { path =&gt; &#39;/srv/www&#39;\n        error_documents =&gt; [\n          { &#39;error_code&#39; =&gt; &#39;503&#39;, &#39;document&#39; =&gt; &#39;/service-unavail&#39; },\n        ],\n      }]\n    }\n</code></pre>\n\n<h6><code>headers</code></h6>\n\n<p>Adds lines for <code>Header</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header\">Apache Header documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; {\n        path    =&gt; &#39;/path/to/directory&#39;,\n        headers =&gt; &#39;Set X-Robots-Tag &quot;noindex, noarchive, nosnippet&quot;&#39;,\n      },\n    }\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n    }\n</code></pre>\n\n<h6><code>index_options</code></h6>\n\n<p>Styles the list</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;], index_options =&gt; [&#39;IgnoreCase&#39;, &#39;FancyIndexing&#39;, &#39;FoldersFirst&#39;, &#39;NameWidth=*&#39;, &#39;DescriptionWidth=*&#39;, &#39;SuppressHTMLPreamble&#39;] }],\n    }\n</code></pre>\n\n<h6><code>index_order_default</code></h6>\n\n<p>Sets the order of the list </p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow,Deny&#39;, index_order_default =&gt; [&#39;Descending&#39;, &#39;Date&#39;]}, ],\n    }\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow,Deny&#39; } ],\n    }\n</code></pre>\n\n<h6><code>auth_type</code></h6>\n\n<p>Sets the value for <code>AuthType</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authtype\">Apache AuthType\ndocumentation</a>.</p>\n\n<h6><code>auth_name</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authname\">Apache AuthName\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_algorithm</code></h6>\n\n<p>Sets the value for <code>AuthDigestAlgorithm</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestalgorithm\">Apache\nAuthDigestAlgorithm\ndocumentation</a></p>\n\n<h6><code>auth_digest_domain</code></h6>\n\n<p>Sets the value for <code>AuthDigestDomain</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestdomain\">Apache AuthDigestDomain\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_nonce_lifetime</code></h6>\n\n<p>Sets the value for <code>AuthDigestNonceLifetime</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestnoncelifetime\">Apache\nAuthDigestNonceLifetime\ndocumentation</a></p>\n\n<h6><code>auth_digest_provider</code></h6>\n\n<p>Sets the value for <code>AuthDigestProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestprovider\">Apache AuthDigestProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_qop</code></h6>\n\n<p>Sets the value for <code>AuthDigestQop</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestqop\">Apache AuthDigestQop\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_shmem_size</code></h6>\n\n<p>Sets the value for <code>AuthAuthDigestShmemSize</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestshmemsize\">Apache AuthDigestShmemSize\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_authoritative</code></h6>\n\n<p>Sets the value for <code>AuthBasicAuthoritative</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicauthoritative\">Apache\nAuthBasicAuthoritative\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_fake</code></h6>\n\n<p>Sets the value for <code>AuthBasicFake</code> as per the <a href=\"https://httpd.apache.org/docs/trunk/mod/mod_auth_basic.html#authbasicfake\">Apache AuthBasicFake\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_provider</code></h6>\n\n<p>Sets the value for <code>AuthBasicProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider\">Apache AuthBasicProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_user_file</code></h6>\n\n<p>Sets the value for <code>AuthUserFile</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_authn_file.html#authuserfile\">Apache AuthUserFile\ndocumentation</a>.</p>\n\n<h6><code>auth_require</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#require\">Apache Require\ndocumentation</a></p>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n    }\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h6><code>ssl_options</code></h6>\n\n<p>String or list of <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\"><code>SSLOptions</code></a> for the given <code>&lt;Directory&gt;</code> block. This overrides, or refines the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\"><code>SSLOptions</code></a> of the parent block (either vhost, or server).</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;secure.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, ssl_options =&gt; &#39;+ExportCertData&#39; }\n        { path =&gt; &#39;/path/to/different/dir&#39;, ssl_options =&gt; [ &#39;-StdEnvVars&#39;, &#39;+ExportCertData&#39;] },\n      ],\n    }\n</code></pre>\n\n<h6><code>suphp</code></h6>\n\n<p>An array containing two values: User and group for the <a href=\"http://www.suphp.org/DocumentationView.html?file=apache/CONFIG\">suPHP_UserGroup</a> setting.\nThis directive must be used with <code>suphp_engine =&gt; on</code> in the vhost declaration. This directive only works in <code>&lt;Directory&gt;</code> or <code>&lt;Location&gt;</code>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;secure.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, suphp =&gt; { user =&gt;  &#39;myappuser&#39;, group =&gt; &#39;myappgroup&#39; }\n      ],\n    }\n</code></pre>\n\n<h6><code>custom_fragment</code></h6>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the\ndirectory configuration.</p>\n\n<h5><code>directoryindex</code></h5>\n\n<p>Set a DirectoryIndex directive, to set the list of resources to look for, when the client requests an index of the directory by specifying a / at the end of the directory name..</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_syslog</code></h5>\n\n<p>Sends all error log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>A list of hashes which can be used to override the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#errordocument\">ErrorDocument</a> settings for this vhost. Defaults to <code>[]</code>. Example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      error_documents =&gt; [\n        { &#39;error_code&#39; =&gt; &#39;503&#39;, &#39;document&#39; =&gt; &#39;/service-unavail&#39; },\n        { &#39;error_code&#39; =&gt; &#39;407&#39;, &#39;document&#39; =&gt; &#39;https://example.com/proxy/login&#39; },\n      ],\n    }\n</code></pre>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>fastcgi_server</code></h5>\n\n<p>Specifies the filename as an external FastCGI application. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>fastcgi_socket</code></h5>\n\n<p>Filename used to communicate with the web server.  Defaults to &#39;undef&#39;.</p>\n\n<h5><code>fastcgi_dir</code></h5>\n\n<p>Directory to enable for FastCGI.  Defaults to &#39;undef&#39;.</p>\n\n<h5><code>additional_includes</code></h5>\n\n<p>Specifies paths to additional static vhost-specific Apache configuration files.\nThis option is useful when you need to implement a unique and/or custom\nconfiguration not supported by this module.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>log_level</code></h5>\n\n<p>Specifies the verbosity level of the error log. Defaults to <code>warn</code> for the global server configuration and can be overridden on a per-vhost basis using this parameter. Valid value for <code>log_level</code> is one of <code>emerg</code>, <code>alert</code>, <code>crit</code>, <code>error</code>, <code>warn</code>, <code>notice</code>, <code>info</code> or <code>debug</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n    }\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:</p>\n\n<pre lang=\"puppet\"><code>$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; }\n]\n\napache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  proxy_pass       =&gt; $proxy_pass,\n}\n</code></pre>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n      redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n    }\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n    }\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      request_headers =&gt; [\n        &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n        &#39;unset MirrorID&#39;,\n      ],\n    }\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n      rewrite_base =&gt; &#39;/blog/&#39;,\n    }\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n    }\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n    }\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>scriptaliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>ScriptAlias</code> or <code>ScriptAliasMatch</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"puppet\"><code>    scriptaliases =&gt; [\n      {\n        alias =&gt; &#39;/myscript&#39;,\n        path  =&gt; &#39;/usr/share/myscript&#39;,\n      },\n      {\n        aliasmatch =&gt; &#39;^/foo(.*)&#39;,\n        path       =&gt; &#39;/usr/share/fooscripts$1&#39;,\n      },\n      {\n        aliasmatch =&gt; &#39;^/bar/(.*)&#39;,\n        path       =&gt; &#39;/usr/share/bar/wrapper.sh/$1&#39;,\n      },\n      {\n        alias =&gt; &#39;/neatscript&#39;,\n        path  =&gt; &#39;/usr/share/neatscript&#39;,\n      },\n    ]\n</code></pre>\n\n<p>These directives are created in the order specified. As with <code>Alias</code> and <code>AliasMatch</code> directives the more specific aliases should come before the more general ones to avoid shadowing.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_protocol</code></h5>\n\n<p>Specifies the SSL Protocol (SSLProtocol).</p>\n\n<h5><code>ssl_cipher</code></h5>\n\n<p>Specifies the SSLCipherSuite.</p>\n\n<h5><code>ssl_honorcipherorder</code></h5>\n\n<p>Sets SSLHonorCipherOrder directive, used to prefer the server&#39;s cipher preference order</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code> on Debian and <code>/etc/pki/tls/certs</code> on RedHat.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>ssl_verify_client</code></h5>\n\n<p>Sets <code>SSLVerifyClient</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifyclient\">Apache Core documentation</a>. Defaults to undef.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_verify_client =&gt; &#39;optional&#39;,\n    }\n</code></pre>\n\n<h5><code>ssl_verify_depth</code></h5>\n\n<p>Sets <code>SSLVerifyDepth</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifydepth\">Apache Core documentation</a>. Defaults to undef.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_verify_depth =&gt; 1,\n    }\n</code></pre>\n\n<h5><code>ssl_options</code></h5>\n\n<p>Sets <code>SSLOptions</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\">Apache Core documentation</a>. This is the global setting for the vhost and can be a string or an array. Defaults to undef. A single string example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_options =&gt; &#39;+ExportCertData&#39;,\n    }\n</code></pre>\n\n<p>An array of strings example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_options =&gt; [ &#39;+StrictRequire&#39;, &#39;+ExportCertData&#39; ],\n    }\n</code></pre>\n\n<h5><code>ssl_proxyengine</code></h5>\n\n<p>Specifies whether to use <code>SSLProxyEngine</code> or not. Defaults to <code>false</code>.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h5><code>itk</code></h5>\n\n<p>Hash containing infos to configure itk as per the <a href=\"http://mpm-itk.sesse.net/\">ITK documentation</a>.</p>\n\n<p>Keys could be:</p>\n\n<ul>\n<li>user + group</li>\n<li>assignuseridexpr</li>\n<li>assigngroupidexpr</li>\n<li>maxclientvhost</li>\n<li>nice</li>\n<li>limituidrange (Linux 3.5.0 or newer)</li>\n<li>limitgidrange (Linux 3.5.0 or newer)</li>\n</ul>\n\n<p>Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      itk =&gt; {\n        user  =&gt; &#39;someuser&#39;,\n        group =&gt; &#39;somegroup&#39;,\n      },\n    }\n</code></pre>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/main/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;third.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/third&#39;,\n      serveradmin =&gt; &#39;admin@example.com&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixth.example.com&#39;:\n      serveraliases =&gt; [\n        &#39;sixth.example.org&#39;,\n        &#39;sixth.example.net&#39;,\n      ],\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/fifth&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;eleventh.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/eleventh&#39;,\n      scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fifteenth.example.com&#39;:\n      port           =&gt; &#39;80&#39;,\n      docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n      rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre lang=\"puppet\"><code>    #The non-ssl vhost\n    apache::vhost { &#39;first.example.com non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n\n    #The SSL vhost at the same domain\n    apache::vhost { &#39;first.example.com ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n      servername      =&gt; &#39;sixteenth.example.com&#39;,\n      port            =&gt; &#39;80&#39;,\n      docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n      redirect_status =&gt; &#39;permanent&#39;\n      redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39;\n    }\n    apache::vhost { &#39;sixteenth.example.com ssl&#39;:\n      servername =&gt; &#39;sixteenth.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.10&#39;,\n      docroot  =&gt; &#39;/var/www/first&#39;,\n      ip_based =&gt; true,\n    }\n    apache::vhost { &#39;second.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.11&#39;,\n      docroot  =&gt; &#39;/var/www/second&#39;,\n      ip_based =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;80&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n    apache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;443&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/second&#39;,\n    }\n    apache::vhost { &#39;third.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/third&#39;,\n    }\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fourth&#39;,\n      add_listen =&gt; false,\n    }\n    apache::vhost { &#39;fifth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fifth&#39;,\n      add_listen =&gt; false,\n    }\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<p>On FreeBSD you&#39;re required to define <code>apache::package</code> or <code>apache</code> class before <code>apache::dev</code>.</p>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre lang=\"puppet\"><code>      @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n        balancer_cluster =&gt; &#39;puppet00&#39;,\n        url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n        options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n      }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet01&#39;:\n        proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n      }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, CentOS 5.8, and FreeBSD 9.1.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": "<section class=\"markdown\"><h2>2013-12-05 Release 0.10.0</h2>\n\n<h3>Summary:</h3>\n\n<p>This release adds FreeBSD osfamily support and various other improvements to some mods.</p>\n\n<h3>Features:</h3>\n\n<ul>\n<li>Add suPHP_UserGroup directive to directory context</li>\n<li>Add support for ScriptAliasMatch directives</li>\n<li>Set SSLOptions StdEnvVars in server context</li>\n<li>No implicit <Directory> entry for ScriptAlias path</li>\n<li>Add support for overriding ErrorDocument</li>\n<li>Add support for AliasMatch directives</li>\n<li>Disable default &quot;allow from all&quot; in vhost-directories</li>\n<li>Add WSGIPythonPath as an optional parameter to mod_wsgi. </li>\n<li>Add mod_rpaf support</li>\n<li>Add directives: IndexOptions, IndexOrderDefault</li>\n<li>Add ability to include additional external configurations in vhost</li>\n<li>need to use the provider variable not the provider key value from the directory hash for matches</li>\n<li>Support for FreeBSD and few other features</li>\n<li>Add new params to apache::mod::mime class</li>\n<li>Allow apache::mod to specify module id and path</li>\n<li>added $server_root parameter</li>\n<li>Add Allow and ExtendedStatus support to mod_status</li>\n<li>Expand vhost/_directories.pp directive support</li>\n<li>Add initial support for nss module (no directives in vhost template yet)</li>\n<li>added peruser and event mpms</li>\n<li>added $service_name parameter</li>\n<li>add parameter for TraceEnable</li>\n<li>Make LogLevel configurable for server and vhost</li>\n<li>Add documentation about $ip</li>\n<li>Add ability to pass ip (instead of wildcard) in default vhost files</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Don&#39;t listen on port or set NameVirtualHost for non-existent vhost</li>\n<li>only apply Directory defaults when provider is a directory</li>\n<li>Working mod_authnz_ldap support on Debian/Ubuntu</li>\n</ul>\n\n<h2>2013-09-06 Release 0.9.0</h2>\n\n<h3>Summary:</h3>\n\n<p>This release adds more parameters to the base apache class and apache defined\nresource to make the module more flexible. It also adds or enhances SuPHP,\nWSGI, and Passenger mod support, and support for the ITK mpm module.</p>\n\n<h3>Backwards-incompatible Changes:</h3>\n\n<ul>\n<li>Remove many default mods that are not normally needed.</li>\n<li>Remove <code>rewrite_base</code> <code>apache::vhost</code> parameter; did not work anyway.</li>\n<li>Specify dependencies on stdlib &gt;=2.4.0 (this was already the case, but\nmaking explicit)</li>\n<li>Deprecate <code>a2mod</code> in favor of the <code>apache::mod::*</code> classes and <code>apache::mod</code>\ndefined resource.</li>\n</ul>\n\n<h3>Features:</h3>\n\n<ul>\n<li><code>apache</code> class\n\n<ul>\n<li>Add <code>httpd_dir</code> parameter to change the location of the configuration\nfiles.</li>\n<li>Add <code>logroot</code> parameter to change the logroot</li>\n<li>Add <code>ports_file</code> parameter to changes the <code>ports.conf</code> file location</li>\n<li>Add <code>keepalive</code> parameter to enable persistent connections</li>\n<li>Add <code>keepalive_timeout</code> parameter to change the timeout</li>\n<li>Update <code>default_mods</code> to be able to take an array of mods to enable.</li>\n</ul></li>\n<li><code>apache::vhost</code>\n\n<ul>\n<li>Add <code>wsgi_daemon_process</code>, <code>wsgi_daemon_process_options</code>,\n<code>wsgi_process_group</code>, and <code>wsgi_script_aliases</code> parameters for per-vhost\nWSGI configuration.</li>\n<li>Add <code>access_log_syslog</code> parameter to enable syslogging.</li>\n<li>Add <code>error_log_syslog</code> parameter to enable syslogging of errors.</li>\n<li>Add <code>directories</code> hash parameter. Please see README for documentation.</li>\n<li>Add <code>sslproxyengine</code> parameter to enable SSLProxyEngine</li>\n<li>Add <code>suphp_addhandler</code>, <code>suphp_engine</code>, and <code>suphp_configpath</code> for\nconfiguring SuPHP.</li>\n<li>Add <code>custom_fragment</code> parameter to allow for arbitrary apache\nconfiguration injection. (Feature pull requests are prefered over using\nthis, but it is available in a pinch.)</li>\n</ul></li>\n<li>Add <code>apache::mod::suphp</code> class for configuring SuPHP.</li>\n<li>Add <code>apache::mod::itk</code> class for configuring ITK mpm module.</li>\n<li>Update <code>apache::mod::wsgi</code> class for global WSGI configuration with\n<code>wsgi_socket_prefix</code> and <code>wsgi_python_home</code> parameters.</li>\n<li>Add README.passenger.md to document the <code>apache::mod::passenger</code> usage.\nAdded <code>passenger_high_performance</code>, <code>passenger_pool_idle_time</code>,\n<code>passenger_max_requests</code>, <code>passenger_stat_throttle_rate</code>, <code>rack_autodetect</code>,\nand <code>rails_autodetect</code> parameters.</li>\n<li>Separate the httpd service resource into a new <code>apache::service</code> class for\ndependency chaining of <code>Class[&#39;apache&#39;] -&gt; &lt;resource&gt; ~&gt;\nClass[&#39;apache::service&#39;]</code></li>\n<li>Added <code>apache::mod::proxy_balancer</code> class for <code>apache::balancer</code></li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Change dependency to puppetlabs-concat</li>\n<li>Fix ruby 1.9 bug for <code>a2mod</code></li>\n<li>Change servername to be <code>$::hostname</code> if there is no <code>$::fqdn</code></li>\n<li>Make <code>/etc/ssl/certs</code> the default ssl certs directory for RedHat non-5.</li>\n<li>Make <code>php</code> the default php package for RedHat non-5.</li>\n<li>Made <code>aliases</code> able to take a single alias hash instead of requiring an\narray.</li>\n</ul>\n\n<h2>2013-07-26 Release 0.8.1</h2>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Update <code>apache::mpm_module</code> detection for worker/prefork</li>\n<li>Update <code>apache::mod::cgi</code> and <code>apache::mod::cgid</code> detection for\nworker/prefork</li>\n</ul>\n\n<h2>2013-07-16 Release 0.8.0</h2>\n\n<h3>Features:</h3>\n\n<ul>\n<li>Add <code>servername</code> parameter to <code>apache</code> class</li>\n<li>Add <code>proxy_set</code> parameter to <code>apache::balancer</code> define</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Fix ordering for multiple <code>apache::balancer</code> clusters</li>\n<li>Fix symlinking for sites-available on Debian-based OSs</li>\n<li>Fix dependency ordering for recursive confdir management</li>\n<li>Fix <code>apache::mod::*</code> to notify the service on config change</li>\n<li>Documentation updates</li>\n</ul>\n\n<h2>2013-07-09 Release 0.7.0</h2>\n\n<h3>Changes:</h3>\n\n<ul>\n<li>Essentially rewrite the module -- too many to list</li>\n<li><code>apache::vhost</code> has many abilities -- see README.md for details</li>\n<li><code>apache::mod::*</code> classes provide httpd mod-loading capabilities</li>\n<li><code>apache</code> base class is much more configurable</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Many. And many more to come</li>\n</ul>\n\n<h2>2013-03-2 Release 0.6.0</h2>\n\n<ul>\n<li>update travis tests (add more supported versions)</li>\n<li>add access log_parameter</li>\n<li>make purging of vhost dir configurable</li>\n</ul>\n\n<h2>2012-08-24 Release 0.4.0</h2>\n\n<h3>Changes:</h3>\n\n<ul>\n<li><code>include apache</code> is now required when using <code>apache::mod::*</code></li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Fix syntax for validate_re</li>\n<li>Fix formatting in vhost template</li>\n<li><p>Fix spec tests such that they pass</p>\n\n<p>2012-05-08 Puppet Labs <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a> - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#39;s name\n72e13de One end too much\n0739641 style guide fixes: &#39;true&#39; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod/a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#39;httpd&#39;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache</p></li>\n</ul>\n</section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2013-12-05 15:29:14 -0800",
      "updated_at": "2013-12-05 15:29:14 -0800",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.0.4",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.0.4",
      "metadata": {
        "description": "Module for Apache configuration",
        "checksums": {
          "tests/ssl.pp": "191912535199531fd631f911c6329e56",
          "spec/spec_helper.rb": "980111cecb2c99b91ac846d7b0862578",
          "spec/classes/php_spec.rb": "aa98098c3404325c941ad1aa71295640",
          "manifests/vhost/redirect.pp": "8fdef0e0e8da73e9fb30f819de2a4464",
          "manifests/python.pp": "daa8000b529be1fd931538516373afcd",
          "manifests/params.pp": "27f043698624d6ff5f92f7a220ed8c39",
          "tests/vhost.pp": "1f627c432582a8fc91b8375460d9794e",
          "spec/classes/ssl_spec.rb": "d93e4f61548ce6b077bb8947daaae651",
          "spec/defines/vhost/proxy_spec.rb": "9d3a5a9361d1d49eb82dcbdc51edea80",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "CHANGELOG": "3705f6d39cde99023ee6de89f40910a1",
          "manifests/php.pp": "203071fafab369cacc8b7bec80eec481",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "templates/vhost-redirect.conf.erb": "f12c8165c2e9a688402ec8484ef6c59c",
          "spec/classes/dev_spec.rb": "e0392f699206ca40a5c66c51b2349ff7",
          "manifests/mod/wsgi.pp": "90ef340ac19106fe801656091d3f9a4b",
          "lib/puppet/provider/a2mod/a2mod.rb": "0acf42d3d670a9915c5a3f46ae7335f1",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "spec/defines/vhost_spec.rb": "c5d180e4c1db180b296cdcf6e167af6e",
          "Rakefile": "65bc94e790a918bcfd07686c2d51e043",
          "spec/classes/apache_spec.rb": "e4aff27ddc0ff9d53f2a701efde12ac0",
          "manifests/ssl.pp": "00d85958c17bc62f27df8e4ca86043a0",
          "manifests/mod/python.pp": "d68627ba8c02bcd2cf910e02e45321ee",
          "manifests/dev.pp": "aecfbf399723a86b00681b03a1cd13d9",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "templates/vhost-proxy.conf.erb": "4b67009e57758dcb0ef06fcbda89515c",
          "spec/classes/params_spec.rb": "384b7b99be6d2bcd684f2ecf54d2df3e",
          "spec/classes/mod/wsgi_spec.rb": "8e34c9ab7fc445d13d9ed318d0a34cdf",
          "manifests/vhost.pp": "b4f3cd713a95ead5ad2c7fcdbd8a64c8",
          "lib/puppet/type/a2mod.rb": "8b3005913ca51cb51e94d568f249880e",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "tests/apache.pp": "4eac4a7ef68499854c54a78879e25535",
          "templates/vhost-default.conf.erb": "e30ec34eabb2e7a8d57c9842f74cb059",
          "templates/test.vhost.erb": "2c0ae13f2a32177e128e3ff49c37ffbd",
          "spec/classes/python_spec.rb": "af7d22879b16d3ce4a5ed70d4d880903",
          "spec/defines/vhost/redirect_spec.rb": "337fb5c89ab5fc790ecb76f8b169a7e6",
          "spec/classes/mod/python_spec.rb": "26a3d76a16abf7f2c7c9f7767196ecd1",
          "Modulefile": "cb1e5a87875ad86a43d6cfdba04eb45b",
          "manifests/vhost/proxy.pp": "1c774f8370d418b86a6ee08e530305d7",
          "manifests/init.pp": "cb62a3aba1af2eebb7a08e45ee399065"
        },
        "summary": "Puppet module for Apache",
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "dependencies": [
          {
            "version_requirement": ">= 0.0.4",
            "name": "puppetlabs/firewall"
          }
        ],
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
        "author": "puppetlabs",
        "types": [
          {
            "parameters": [
              {
                "name": "name",
                "doc": "The name of the module to be managed"
              }
            ],
            "properties": [
              {
                "name": "ensure",
                "doc": "The basic property that the resource should be in.  Valid values are `present`, `absent`."
              }
            ],
            "providers": [
              {
                "name": "a2mod",
                "doc": "Manage Apache 2 modules on Debian and Ubuntu\n\nRequired binaries: `a2enmod`, `a2dismod`.  Default for `operatingsystem` == `debian, ubuntu`."
              },
              {
                "name": "modfix",
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    "
              }
            ],
            "name": "a2mod",
            "doc": "Manage Apache 2 modules on Debian and Ubuntu"
          }
        ],
        "version": "0.0.4",
        "name": "puppetlabs-apache",
        "license": "Apache 2.0"
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.0.4.tar.gz",
      "file_size": 9707,
      "file_md5": "5d1d4ec6ce20986d4be3a4bd0ecba07a",
      "downloads": 6249,
      "readme": null,
      "changelog": "<section class=\"plaintext\"><pre>2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2012-05-08 16:43:59 -0700",
      "updated_at": "2012-05-08 16:43:59 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.4.0",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.4.0",
      "metadata": {
        "description": "Module for Apache configuration",
        "summary": "Puppet module for Apache",
        "dependencies": [
          {
            "name": "puppetlabs/firewall",
            "version_requirement": ">= 0.0.4"
          },
          {
            "name": "puppetlabs/stdlib",
            "version_requirement": ">= 2.2.1"
          }
        ],
        "author": "puppetlabs",
        "version": "0.4.0",
        "types": [
          {
            "providers": [
              {
                "doc": "Manage Apache 2 modules on Debian and Ubuntu\n\nRequired binaries: `a2enmod`, `a2dismod`.  Default for `operatingsystem` == `debian, ubuntu`.",
                "name": "a2mod"
              },
              {
                "doc": "Manage Apache 2 modules on Gentoo\n\nDefault for `operatingsystem` == `gentoo`.",
                "name": "gentoo"
              },
              {
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    ",
                "name": "modfix"
              },
              {
                "doc": "Manage Apache 2 modules on RedHat family OSs\n\nDefault for `osfamily` == `redhat`.",
                "name": "redhat"
              }
            ],
            "properties": [
              {
                "doc": "The basic property that the resource should be in.  Valid values are `present`, `absent`.",
                "name": "ensure"
              }
            ],
            "doc": "Manage Apache 2 modules on Debian and Ubuntu",
            "name": "a2mod",
            "parameters": [
              {
                "doc": "The name of the module to be managed",
                "name": "name"
              },
              {
                "doc": "The name of the .so library to be loaded",
                "name": "lib"
              }
            ]
          }
        ],
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "license": "Apache 2.0",
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
        "name": "puppetlabs-apache",
        "checksums": {
          "templates/mod/proxy.conf.erb": "54cd35ef17c78c18f10be50eebb4142c",
          "manifests/mod.pp": "148cc4249f39ec2ff1292fa5bae8d2a6",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "Rakefile": "0254db5d3fc38c67a2c160d7296a24f8",
          "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
          "manifests/params.pp": "3822d676834eb7ac81c47239b0112c79",
          "templates/mod/userdir.conf.erb": "fd73fe59b6a5dcf16a5df9af91c187dd",
          "manifests/mod/python.pp": "344f7b359d801ee6942211726004fa93",
          "lib/puppet/provider/a2mod/redhat.rb": "cb8db52784eef2a50cd495773a5c46a5",
          "manifests/mod/proxy_http.pp": "f1a0fd5eb51ba564c2bd68e6669bc7dc",
          "templates/test.vhost.erb": "31eb6a591acc699fe4e67a7cf367d0ab",
          "manifests/php.pp": "a4478838b4cf9b0525b04db150cf55b8",
          "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
          "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
          "spec/defines/vhost_spec.rb": "9a741b3cdb0bf1f7d4f5c849044e20dd",
          "spec/classes/mod/ssl_spec.rb": "df737098c4bd03179e29d0c22a80a565",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "manifests/proxy.pp": "54e7657920b580546f3bef3980f2fd03",
          "manifests/mod/php.pp": "ff7549863eba4c7722240ff9c2f140f3",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "manifests/vhost/proxy.pp": "6a09bd5018f556025de54632cb02d061",
          "Modulefile": "7784d240b14cf9b6b06ae51b66f55ee0",
          "manifests/mod/disk_cache.pp": "8488851c7301f50e75e92890d40e6300",
          "manifests/mod/auth_kerb.pp": "a7e4d1789f23528c7a19690340387a85",
          "manifests/mod/proxy_html.pp": "fb43e85c277b11681463a48a9653d06a",
          "spec/classes/ssl_spec.rb": "67c8ccf6b5055f50f40978b221873c88",
          "lib/puppet/type/a2mod.rb": "30ea8400197a833dc3fee3e095b01d9e",
          "manifests/mod/dev.pp": "71234485e642f0e8cdd8774670d48b7f",
          "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
          "manifests/mod/ssl.pp": "2ffd543847785cd2f916f244f8742448",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "1be4e8d809ed8369de44a022254bfb7b",
          "CHANGELOG": "f65b75627c2a8c4f753193f914d2a1a9",
          "manifests/init.pp": "333146fe0bbc882207c7b78dc4b2e8cd",
          "spec/classes/php_spec.rb": "7c176dcb6cf35adce2d0ff3d17678f8a",
          "manifests/ssl.pp": "7f944d1c103a59ebd04d02e68af69f7a",
          "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
          "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "spec/classes/mod/auth_kerb_spec.rb": "6b71ffa45b4a0a1476ee56c75c26e6db",
          "spec/classes/dev_spec.rb": "64d66d5074a1d634d765db182bea5e43",
          "spec/classes/mod/python_spec.rb": "99f05654c0b748ab18096c5cf4b74781",
          "spec/defines/vhost/redirect_spec.rb": "98f2a7022b7302a771d811e424454639",
          "manifests/mod/cgi.pp": "eba237e3f10511c02d8f27b99592103d",
          "manifests/dev.pp": "c263f8db2a35361e9dfdef30477f8ee3",
          "templates/vhost-default.conf.erb": "680587f275662a31cdb486a309db8214",
          "manifests/mod/proxy.pp": "d789eec804b4e887858cde19429afc7d",
          "spec/classes/mod/wsgi_spec.rb": "7a05c23e66b027d4738ce1368f6d9f43",
          "manifests/vhost.pp": "8d31a51ddbff60ffc03b79781957718f",
          "templates/vhost-redirect.conf.erb": "f12c8165c2e9a688402ec8484ef6c59c",
          "manifests/mod/default.pp": "8a2bc7a4312d60fd09ac4eadceab9330",
          "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
          "spec/classes/python_spec.rb": "ce7b11e4fb4e7bfe5b5c18ded9d24897",
          "tests/vhost.pp": "4a97d258da130cad784249a6097fd0ac",
          "templates/mod/disk_cache.conf.erb": "bc2cb0003944e688d3137781f6a49997",
          "spec/defines/vhost/proxy_spec.rb": "bc34ea522d04c9ffd067a83374ac832f",
          "manifests/python.pp": "2edb06e8119b67a5a62fb24fb280d3e5",
          "spec/classes/apache_spec.rb": "bc29c3787a043098b10aa6ca1028a43e",
          "templates/mod/php.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
          "manifests/mod/userdir.pp": "a7d01097caba2b3dcec7d6e96e0bf500",
          "templates/vhost-proxy.conf.erb": "3f6e23159809c4aa5a20b441d12a09ad",
          "templates/httpd.conf.erb": "93971da2f62ebaee55cc8691b2073860",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
          "manifests/mod/wsgi.pp": "90ef340ac19106fe801656091d3f9a4b",
          "manifests/vhost/redirect.pp": "c4b1b5eefb11d4a4025096e1aa13d6cf",
          "spec/classes/params_spec.rb": "41f4e90e9cbe23e5c81831248b2f3cd4",
          "manifests/mod/dav_fs.pp": "1240d81890bc436838a0d0568d019a5a",
          "README.md": "9342c60532e2950fae48eac3bbcf8d73",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
          "lib/puppet/provider/a2mod/a2mod.rb": "8b4836cfbcc980e60c30cc046bc77cd5"
        }
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.4.0.tar.gz",
      "file_size": 27860,
      "file_md5": "996659ad952e1729f286524e4dba4c04",
      "downloads": 6232,
      "readme": "<section class=\"markdown\"><h1>Puppetlabs module for Apache</h1>\n\n<p>Apache is widely-used web server and this module will allow to configure\nvarious modules and setup virtual hosts with minimal effort.</p>\n\n<h2>Basic usage</h2>\n\n<p>To install Apache</p>\n\n<pre><code>class {&#39;apache&#39;:  }\n</code></pre>\n\n<p>To install the Apache PHP module</p>\n\n<pre><code>class {&#39;apache::mod::php&#39;: }\n</code></pre>\n\n<h2>Configure a virtual host</h2>\n\n<p>You can easily configure many parameters of a virtual host. A minimal\nexample is:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n}\n</code></pre>\n\n<p>A slightly more complicated example, which moves the docroot and\nlogfile to an alternate location, might be:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n    docroot         =&gt; &#39;/home/www.example.com/docroot/&#39;,\n    logroot         =&gt; &#39;/srv/www.example.com/logroot/&#39;,\n    serveradmin     =&gt; &#39;web@example.com&#39;,\n    serveraliases   =&gt; [&#39;example.com&#39;,],\n}\n</code></pre>\n\n<h2>Notes</h2>\n\n<p>Since Puppet cannot ensure that all parent directories exist you need to\nmanage these yourself. In the more advanced example above, you need to ensure \nthat <code>/home/www.example.com</code> and <code>/srv/www.example.com</code> directories exist.</p>\n\n<h2>Contributors</h2>\n\n<ul>\n<li>A cast of hundreds, hopefully you too soon</li>\n</ul>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": "<section class=\"plaintext\"><pre>2012-08-24 Release 0.4.0\nChanges:\n- `include apache` is now required when using apache::mod::*\n\nBugfixes:\n- Fix syntax for validate_re\n- Fix formatting in vhost template\n- Fix spec tests such that they pass\n\n2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2012-11-06 00:26:27 -0800",
      "updated_at": "2012-11-06 00:26:27 -0800",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.5.0-rc1",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.5.0-rc1",
      "metadata": {
        "description": "Module for Apache configuration",
        "summary": "Puppet module for Apache",
        "types": [
          {
            "providers": [
              {
                "doc": "Manage Apache 2 modules on Debian and Ubuntu\n\nRequired binaries: `a2enmod`, `a2dismod`.  Default for `operatingsystem` == `debian, ubuntu`.",
                "name": "a2mod"
              },
              {
                "doc": "Manage Apache 2 modules on Gentoo\n\nDefault for `operatingsystem` == `gentoo`.",
                "name": "gentoo"
              },
              {
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    ",
                "name": "modfix"
              },
              {
                "doc": "Manage Apache 2 modules on RedHat family OSs\n\nDefault for `osfamily` == `redhat`.",
                "name": "redhat"
              }
            ],
            "properties": [
              {
                "doc": "The basic property that the resource should be in.  Valid values are `present`, `absent`.",
                "name": "ensure"
              }
            ],
            "doc": "Manage Apache 2 modules",
            "name": "a2mod",
            "parameters": [
              {
                "doc": "The name of the module to be managed",
                "name": "name"
              },
              {
                "doc": "The name of the .so library to be loaded",
                "name": "lib"
              },
              {
                "doc": "Module identifier string used by LoadModule. Default: module-name_module",
                "name": "identifier"
              }
            ]
          }
        ],
        "author": "puppetlabs",
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
        "name": "puppetlabs-apache",
        "checksums": {
          "spec/classes/mod/wsgi_spec.rb": "7a05c23e66b027d4738ce1368f6d9f43",
          "lib/puppet/provider/a2mod/a2mod.rb": "8b4836cfbcc980e60c30cc046bc77cd5",
          "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
          "manifests/mod/dav_fs.pp": "c6acce86fe14f75521dc8c2920ccedf7",
          "spec/defines/vhost_spec.rb": "9a741b3cdb0bf1f7d4f5c849044e20dd",
          "spec/classes/mod/ssl_spec.rb": "df737098c4bd03179e29d0c22a80a565",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "spec/defines/mod_spec.rb": "e96ca54b19c0948310b333a6c3b0e384",
          "templates/mod/userdir.conf.erb": "fd73fe59b6a5dcf16a5df9af91c187dd",
          "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
          "manifests/mod/passenger.pp": "0bb9e5d4a49b72e56b7a909da42c47bc",
          "lib/puppet/type/a2mod.rb": "f230e4c3e6a111bc6dc79ab2287c9a29",
          "manifests/mod/proxy_http.pp": "773d0fbb934440a24b3bc87517faa4d4",
          "manifests/mod/php.pp": "6de0671e78c1411cc0713f80075ef61f",
          "manifests/mod/auth_kerb.pp": "a7e4d1789f23528c7a19690340387a85",
          "templates/vhost-redirect.conf.erb": "f12c8165c2e9a688402ec8484ef6c59c",
          "templates/vhost-default.conf.erb": "680587f275662a31cdb486a309db8214",
          "manifests/mod.pp": "f8e6c202844b424d4b4b730813f4c6d3",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
          "templates/mod/php.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
          "manifests/mod/dev.pp": "71234485e642f0e8cdd8774670d48b7f",
          "spec/classes/mod/python_spec.rb": "99f05654c0b748ab18096c5cf4b74781",
          "spec/classes/params_spec.rb": "41f4e90e9cbe23e5c81831248b2f3cd4",
          "manifests/ssl.pp": "7f944d1c103a59ebd04d02e68af69f7a",
          "spec/classes/mod/auth_kerb_spec.rb": "6b71ffa45b4a0a1476ee56c75c26e6db",
          "templates/vhost-proxy.conf.erb": "3f6e23159809c4aa5a20b441d12a09ad",
          "manifests/mod/ssl.pp": "2ffd543847785cd2f916f244f8742448",
          "manifests/vhost.pp": "8d31a51ddbff60ffc03b79781957718f",
          "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "manifests/dev.pp": "c263f8db2a35361e9dfdef30477f8ee3",
          "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
          "CHANGELOG": "f65b75627c2a8c4f753193f914d2a1a9",
          "manifests/params.pp": "df442b5ea6cd7ec31e7eca15ac6b6f87",
          "Modulefile": "7e660c223c4e1e5ad9639bde687f4ece",
          "manifests/init.pp": "8fac5acb69de49122fdbfcffacc08125",
          "templates/test.vhost.erb": "31eb6a591acc699fe4e67a7cf367d0ab",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "24ad9db4f6ba0b4fc7ed77b509b4244c",
          "manifests/mod/wsgi.pp": "90ef340ac19106fe801656091d3f9a4b",
          "manifests/vhost/redirect.pp": "7fb0fe676efa6bbc7de653d0651235c1",
          "manifests/mod/proxy.pp": "d789eec804b4e887858cde19429afc7d",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
          "Rakefile": "0254db5d3fc38c67a2c160d7296a24f8",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "templates/mod/proxy.conf.erb": "54cd35ef17c78c18f10be50eebb4142c",
          "lib/puppet/provider/a2mod/redhat.rb": "90b9add30cf9acf2289a51d9f4c31bd7",
          "spec/defines/vhost/proxy_spec.rb": "cd3e28ebba818b3966fcf6ed4053a357",
          "spec/defines/vhost/redirect_spec.rb": "98f2a7022b7302a771d811e424454639",
          "README.md": "9e8a84ba0cf502551d3b1c0e34320864",
          "manifests/vhost/proxy.pp": "592f535ba5efabcdd8dbfbcf211f6f5b",
          "spec/classes/dev_spec.rb": "64d66d5074a1d634d765db182bea5e43",
          "manifests/mod/proxy_html.pp": "8cb51fa968a18d957274a2b68cca8216",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "spec/classes/python_spec.rb": "ce7b11e4fb4e7bfe5b5c18ded9d24897",
          "manifests/mod/disk_cache.pp": "a6ce6b0d3393bff8287f6267dd49bc82",
          "manifests/php.pp": "a4478838b4cf9b0525b04db150cf55b8",
          "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
          "manifests/mod/python.pp": "344f7b359d801ee6942211726004fa93",
          "manifests/proxy.pp": "54e7657920b580546f3bef3980f2fd03",
          "spec/classes/apache_spec.rb": "10f2a7629c7e596864f5c0b3c2ece6cf",
          "manifests/mod/default.pp": "8a2bc7a4312d60fd09ac4eadceab9330",
          "manifests/mod/userdir.pp": "a7d01097caba2b3dcec7d6e96e0bf500",
          "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
          "spec/classes/ssl_spec.rb": "67c8ccf6b5055f50f40978b221873c88",
          "manifests/python.pp": "2edb06e8119b67a5a62fb24fb280d3e5",
          "spec/classes/php_spec.rb": "7c176dcb6cf35adce2d0ff3d17678f8a",
          "templates/httpd.conf.erb": "63e07e1d3428ecc3da8e812eb2524978",
          "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
          "tests/vhost.pp": "4a97d258da130cad784249a6097fd0ac",
          "manifests/mod/cgi.pp": "eba237e3f10511c02d8f27b99592103d",
          "templates/mod/disk_cache.conf.erb": "bc2cb0003944e688d3137781f6a49997"
        },
        "dependencies": [
          {
            "version_requirement": ">= 0.0.4",
            "name": "puppetlabs/firewall"
          },
          {
            "version_requirement": ">= 2.2.1",
            "name": "puppetlabs/stdlib"
          }
        ],
        "license": "Apache 2.0",
        "version": "0.5.0-rc1"
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.5.0-rc1.tar.gz",
      "file_size": 28866,
      "file_md5": "f62139bda531ac4c8f55ecf09f77d0e9",
      "downloads": 6125,
      "readme": "<section class=\"markdown\"><h1>Puppetlabs module for Apache</h1>\n\n<p>Apache is widely-used web server and this module will allow to configure\nvarious modules and setup virtual hosts with minimal effort.</p>\n\n<h2>Basic usage</h2>\n\n<p>To install Apache</p>\n\n<pre><code>class {&#39;apache&#39;:  }\n</code></pre>\n\n<p>To install the Apache PHP module</p>\n\n<pre><code>class {&#39;apache::mod::php&#39;: }\n</code></pre>\n\n<h2>Configure a virtual host</h2>\n\n<p>You can easily configure many parameters of a virtual host. A minimal\nexample is:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n}\n</code></pre>\n\n<p>A slightly more complicated example, which moves the docroot and\nlogfile to an alternate location, might be:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n    docroot         =&gt; &#39;/home/www.example.com/docroot/&#39;,\n    logroot         =&gt; &#39;/srv/www.example.com/logroot/&#39;,\n    serveradmin     =&gt; &#39;web@example.com&#39;,\n    serveraliases   =&gt; [&#39;example.com&#39;,],\n}\n</code></pre>\n\n<h2>Dependencies</h2>\n\n<p>Some functionality is dependent on other modules:</p>\n\n<ul>\n<li><a href=\"https://github.com/puppetlabs/puppetlabs-stdlib\">stdlib</a></li>\n<li><a href=\"https://github.com/puppetlabs/puppetlabs-firewall\">firewall</a></li>\n</ul>\n\n<h2>Notes</h2>\n\n<p>Since Puppet cannot ensure that all parent directories exist you need to\nmanage these yourself. In the more advanced example above, you need to ensure \nthat <code>/home/www.example.com</code> and <code>/srv/www.example.com</code> directories exist.</p>\n\n<h2>Contributors</h2>\n\n<ul>\n<li>A cast of hundreds, hopefully you too soon</li>\n</ul>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": "<section class=\"plaintext\"><pre>2012-08-24 Release 0.4.0\nChanges:\n- `include apache` is now required when using apache::mod::*\n\nBugfixes:\n- Fix syntax for validate_re\n- Fix formatting in vhost template\n- Fix spec tests such that they pass\n\n2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2012-12-01 10:53:30 -0800",
      "updated_at": "2012-12-01 10:53:30 -0800",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.8.0",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.8.0",
      "metadata": {
        "name": "puppetlabs-apache",
        "version": "0.8.0",
        "summary": "Puppet module for Apache",
        "author": "puppetlabs",
        "description": "Module for Apache configuration",
        "dependencies": [
          {
            "name": "puppetlabs/stdlib",
            "version_requirement": ">= 2.2.1"
          },
          {
            "name": "ripienaar/concat",
            "version_requirement": ">= 0.2.0"
          }
        ],
        "types": [
          {
            "parameters": [
              {
                "name": "name",
                "doc": "The name of the module to be managed"
              },
              {
                "name": "lib",
                "doc": "The name of the .so library to be loaded"
              },
              {
                "name": "identifier",
                "doc": "Module identifier string used by LoadModule. Default: module-name_module"
              }
            ],
            "providers": [
              {
                "name": "gentoo",
                "doc": "Manage Apache 2 modules on Gentoo"
              },
              {
                "name": "modfix",
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    "
              },
              {
                "name": "redhat",
                "doc": "Manage Apache 2 modules on RedHat family OSs"
              },
              {
                "name": "a2mod",
                "doc": "Manage Apache 2 modules on Debian and Ubuntu"
              }
            ],
            "name": "a2mod",
            "doc": "Manage Apache 2 modules"
          }
        ],
        "checksums": {
          ".bundle/config": "b898efea5e8783d6593fcdabec67e925",
          ".fixtures.yml": "abe7da15beecab9f2023d55185f90bbb",
          ".nodeset.yml": "f2b857f9fc7a701ff118e28591c12925",
          ".travis.yml": "e18e7deea7676026028b8b287c36935a",
          "CHANGELOG": "5cbc39b9a7bf1ffa662b9bd76c6f1ad2",
          "Gemfile": "d44cd671d70f6ba0143fe2194f43ce33",
          "Gemfile.lock": "53c429f143c6903972b71652b5ac571d",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "Modulefile": "890fb7a17031a6697564df72c9d69f30",
          "README.md": "195dc5cf038b80a61a1574c9d52e8a31",
          "Rakefile": "0428ea3759a4692c91604396c406a9c1",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "lib/puppet/provider/a2mod.rb": "03ed73d680787dd126ea37a03be0b236",
          "lib/puppet/provider/a2mod/a2mod.rb": "c54df991f0cd63b90ceafad68d6670a5",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "lib/puppet/provider/a2mod/redhat.rb": "89f0a44bc469b6197bd648b8e606ff6b",
          "lib/puppet/type/a2mod.rb": "f230e4c3e6a111bc6dc79ab2287c9a29",
          "manifests/balancer.pp": "7ecb1536337337a1b81e34b5ea75ac84",
          "manifests/balancermember.pp": "d24354d979dd3dc112757f89d69902f5",
          "manifests/default_mods.pp": "91b0fd1d4a448c68d96c27cc304ff7f6",
          "manifests/dev.pp": "606c3cbe27f32b61cfcbd15fb211890c",
          "manifests/init.pp": "ae2d79ff4bcfefe6b9d5573891dc30a3",
          "manifests/listen.pp": "5efc62bd75a0a9a9565b12bd8cb2a9e4",
          "manifests/mod.pp": "fc66b79d9086d8d296c372d605d31890",
          "manifests/mod/alias.pp": "f5d65ca4755f5464b32c5f95fd42a052",
          "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
          "manifests/mod/auth_kerb.pp": "7876ffdca25396285a26afae8dd030eb",
          "manifests/mod/autoindex.pp": "1b07e7737b4b27f977f80c289172a55b",
          "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
          "manifests/mod/cgi.pp": "eba237e3f10511c02d8f27b99592103d",
          "manifests/mod/cgid.pp": "465b8603b0b74a769edb4b47a98aec2f",
          "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
          "manifests/mod/dav_fs.pp": "93fce4f45e7a85e9d6eb2b745390eaba",
          "manifests/mod/dav_svn.pp": "85a9a3efe5cce6096d89cf29195e6dc1",
          "manifests/mod/deflate.pp": "f317ddf1cbfee52945d0433a3b25c728",
          "manifests/mod/dev.pp": "d6a001af402d8e82e952c8243c5e5321",
          "manifests/mod/dir.pp": "f3c3e6a21653ebda12f35b4b140e68d5",
          "manifests/mod/disk_cache.pp": "da3b7f47ce079f20db2d20e2d6539c11",
          "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
          "manifests/mod/headers.pp": "224438518465d09c951eb00dbaf8123c",
          "manifests/mod/info.pp": "9a45dd07a2681dc1fef9204de3f42bd9",
          "manifests/mod/ldap.pp": "f5033ee5197938d402854d8ffa9fb1d3",
          "manifests/mod/mime.pp": "c9ff4215f9308fd729e96a8d76d3fe1d",
          "manifests/mod/mime_magic.pp": "9c3a73f877de39c1db2178b827c4a86d",
          "manifests/mod/mpm_event.pp": "c1540d87cfb2b4a4631c4cc5d3e191f5",
          "manifests/mod/negotiation.pp": "9f5d70e4c961175a78a049fedaac85c9",
          "manifests/mod/passenger.pp": "4bb1e37a8c2c25319d5cc8e28f6112b4",
          "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
          "manifests/mod/php.pp": "247915331ce4ee815a0c032897a83157",
          "manifests/mod/prefork.pp": "5ca6538c012828300f6f24cc19f13945",
          "manifests/mod/proxy.pp": "e0e9f9963f720501d9b53ab9fb35f256",
          "manifests/mod/proxy_html.pp": "25cbac9bc2553bc3a18ede060a1a14fd",
          "manifests/mod/proxy_http.pp": "773d0fbb934440a24b3bc87517faa4d4",
          "manifests/mod/python.pp": "0b22df3d0e9a39ce948212e18329155f",
          "manifests/mod/reqtimeout.pp": "2ff860e05de7352d4a1bcd57c0ee08f0",
          "manifests/mod/rewrite.pp": "165fdccc8acc61e5fb088d9917861a3c",
          "manifests/mod/setenvif.pp": "32098aaab01723cae4c44d2fff8114ea",
          "manifests/mod/ssl.pp": "80ee4f522104719f07aa2be33d320973",
          "manifests/mod/status.pp": "1619d96a0d9b9534145209c98c683cbe",
          "manifests/mod/userdir.pp": "7166fee20a3e5b97d61dfae18fb745c9",
          "manifests/mod/vhost_alias.pp": "ea2d06875ed4f47ba65da0f7169e529e",
          "manifests/mod/worker.pp": "e2d1bf1a9b428ae9688e705dc428701a",
          "manifests/mod/wsgi.pp": "86b284ccc6571fb702eb2647c975d3a3",
          "manifests/mod/xsendfile.pp": "ebe6241729f1b0d8125043a1f34caa54",
          "manifests/namevirtualhost.pp": "27bb9faa95147fcd15ec2aa0a95bc3af",
          "manifests/params.pp": "8d13a3b62cf742f40c018b330d72bcac",
          "manifests/php.pp": "a4478838b4cf9b0525b04db150cf55b8",
          "manifests/proxy.pp": "54e7657920b580546f3bef3980f2fd03",
          "manifests/python.pp": "2edb06e8119b67a5a62fb24fb280d3e5",
          "manifests/ssl.pp": "7f944d1c103a59ebd04d02e68af69f7a",
          "manifests/vhost.pp": "2febd978c6f3ade1e8d8780e3b6c83f4",
          "spec/classes/apache_spec.rb": "0f0b7d9910cf54eaad5a53acf5b2286d",
          "spec/classes/dev_spec.rb": "ecc212316f7801f427fa4c30ca65e259",
          "spec/classes/mod/auth_kerb_spec.rb": "70e2d94d84724a1b54aff6a9dede1ca6",
          "spec/classes/mod/dav_svn_spec.rb": "6b014a30e017a6cf30bdc4221e4a15b9",
          "spec/classes/mod/dev_spec.rb": "27a9d92460a3e62842b5e64f7154f893",
          "spec/classes/mod/dir_spec.rb": "e462dbea87eb1211e496f60e40538370",
          "spec/classes/mod/fcgid_spec.rb": "3bd6c0638347b763a88e44d5d7216cb0",
          "spec/classes/mod/info_spec.rb": "3921a934a1d41c6e1cce328a45b3cc1d",
          "spec/classes/mod/passenger_spec.rb": "521ed527cc9f43d8f9a4ccde03e84daf",
          "spec/classes/mod/perl_spec.rb": "0ba258605762d1fa25398a08e90157e4",
          "spec/classes/mod/php_spec.rb": "c4050e546d010f0dcb5a8bd580b5f3ed",
          "spec/classes/mod/prefork_spec.rb": "0f7de99f1fb58670f11fde4f7280e99e",
          "spec/classes/mod/proxy_html_spec.rb": "bf313b5dfdd2c9f3054f4b791c32a84c",
          "spec/classes/mod/python_spec.rb": "2b8079e833cbe6313435a72d9fc00cb9",
          "spec/classes/mod/ssl_spec.rb": "53b8ecefa9ce0af2562d8183c063167d",
          "spec/classes/mod/worker_spec.rb": "f3324663e5f93d1b73911276bd984e79",
          "spec/classes/mod/wsgi_spec.rb": "33dc2afdcc040397d8dec6726d439346",
          "spec/classes/params_spec.rb": "9b1984a3e8a485ff128512833400dfbd",
          "spec/defines/mod_spec.rb": "d82643d472be88a65cd202381099ed6f",
          "spec/defines/vhost_spec.rb": "1cf770757c53757aec11086cb2e6baf7",
          "spec/fixtures/modules/site_apache/templates/fake.conf.erb": "6b0431dd0b9a0bf803eb0684300c2cff",
          "spec/fixtures/system/distro_commands.yaml": "d9617961568154565a6725a3831408d3",
          "spec/spec.opts": "c407193b3d9028941ef59edd114f5968",
          "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
          "spec/spec_helper_system.rb": "271b9ac8eebcc9a24f6691e4ef122021",
          "spec/system/basic_spec.rb": "ad17556c443caa7eec6e2054bc96193f",
          "spec/system/class_spec.rb": "61b330fe643b16041cd3c1830fff48a6",
          "spec/system/mod_php_spec.rb": "b2c39f0a5f35f5c860e99798b6605413",
          "spec/system/vhost_spec.rb": "8c1f24de9e391fb6c4ae88ed3084d9a3",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "24ad9db4f6ba0b4fc7ed77b509b4244c",
          "templates/httpd.conf.erb": "faf2a55d29d91b2bde7cbc004d4c95e3",
          "templates/listen.erb": "6286aa08f9e28caee54b1e1ee031b9d6",
          "templates/mod/alias.conf.erb": "669fc0a80839be3a81e2f4d4150c3ad6",
          "templates/mod/autoindex.conf.erb": "2421a3c6df32c7e38c2a7a22afdf5728",
          "templates/mod/cgid.conf.erb": "3d4e24001b50eb16561e45f5a8237b32",
          "templates/mod/dav_fs.conf.erb": "fdf1f8cff4708a282ef491d60868d1d7",
          "templates/mod/deflate.conf.erb": "44d54f557a5612be8da04c49dd6da862",
          "templates/mod/dir.conf.erb": "2485da78a2506c14bf51dde38dd03360",
          "templates/mod/disk_cache.conf.erb": "7d3e7a5ee3bd7b6a839924b06a60667f",
          "templates/mod/info.conf.erb": "bb48951beaeaf582d1a1023cb661ac32",
          "templates/mod/ldap.conf.erb": "a8a33f645497e0dbcec363c98be43795",
          "templates/mod/mime.conf.erb": "2fa646fe615e44d137a5d629f868c107",
          "templates/mod/mime_magic.conf.erb": "8a4f61bd7539871cb507cc95f5dbd205",
          "templates/mod/mpm_event.conf.erb": "80097a19d063a4f973465d9ef5c0c0bf",
          "templates/mod/negotiation.conf.erb": "47284b5580b986a6ba32580b6ffb9fd7",
          "templates/mod/passenger.conf.erb": "d9c51acf8e19cd8eaf5621ebfd6edba4",
          "templates/mod/php5.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
          "templates/mod/prefork.conf.erb": "f9ec5a7eaea78a19b04fa69f8acd8a84",
          "templates/mod/proxy.conf.erb": "ae1cd187ffbd5cc9b74f8711e313e96b",
          "templates/mod/proxy_html.conf.erb": "67546d56f2d6bb1860338257e3ac9d29",
          "templates/mod/reqtimeout.conf.erb": "81c51851ab7ee7942bef389dc7c0e985",
          "templates/mod/setenvif.conf.erb": "c7ede4173da1915b7ec088201f030c28",
          "templates/mod/ssl.conf.erb": "2567261763976c62a4388abb62ae1e03",
          "templates/mod/status.conf.erb": "da061291068f8e20cf33812373319c40",
          "templates/mod/userdir.conf.erb": "e5a7a7229dbf0de07bc034dd3d108ea2",
          "templates/mod/worker.conf.erb": "9661e7a59eaefb9f17d4c2680c0d243d",
          "templates/namevirtualhost.erb": "fbfca19a639e18e6c477e191344ac8ae",
          "templates/ports_header.erb": "afe35cb5747574b700ebaa0f0b3a626e",
          "templates/vhost.conf.erb": "9ea8ebbd06ae5b6176e8b176947d15d1",
          "templates/vhost/_aliases.erb": "3296d4b5fc00e7277b46356c33e71a70",
          "templates/vhost/_block.erb": "7cb56db9254729b54e8d30686c4f3b1a",
          "templates/vhost/_custom_fragment.erb": "67a4475275ec9208e6421b047b9ed7f4",
          "templates/vhost/_directories.erb": "e16574ce24a1d351e3efd610eca305bd",
          "templates/vhost/_proxy.erb": "3b43dc6a606719681c9b5274be65d60c",
          "templates/vhost/_rack.erb": "ebe187c1bdc81eec9c8e0d9026120b18",
          "templates/vhost/_redirect.erb": "0e2eed04e30240fbbd6c4ef7db6b7058",
          "templates/vhost/_requestheader.erb": "db1b0cdda069ae809b5b83b0871ef991",
          "templates/vhost/_rewrite.erb": "25959fb11677e6f0cc61b76d8a9fcde4",
          "templates/vhost/_scriptalias.erb": "0373372000ca3198594f32ac637a9462",
          "templates/vhost/_serveralias.erb": "2ef30c2152b9284463588f408f7f371f",
          "templates/vhost/_setenv.erb": "da6778b324857234c8441ef346d08969",
          "templates/vhost/_ssl.erb": "c405c430a1e7daf0568c5703d59dad92",
          "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "tests/vhost.pp": "70ce947e12f9b344a24f95a08e622c6c",
          "tests/vhost_ip_based.pp": "7d9f7b6976de7488ab6ff0a6e647fc73",
          "tests/vhost_ssl.pp": "9f3716bc15a9a6760f1d6cc3bf8ce8ac",
          "tests/vhosts_without_listen.pp": "a6692104056a56517b4365bcc816e7f4"
        },
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
        "license": "Apache 2.0"
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.8.0.tar.gz",
      "file_size": 52540,
      "file_md5": "d77e65d987d670d5dac2538e2c98c0b5",
      "downloads": 1586,
      "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre><code>class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre><code>class { &#39;apache&#39;:\n  default_mods =&gt; false,\n  â¦\n}\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre><code>class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre><code>apache::vhost { &#39;first.example.com&#39;:\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/first&#39;,\n}\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre><code>apache::vhost { &#39;second.example.com&#39;:\n  port          =&gt; &#39;80&#39;,\n  docroot       =&gt; &#39;/var/www/second&#39;,\n  docroot_owner =&gt; &#39;third&#39;,\n  docroot_group =&gt; &#39;third&#39;,\n}\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre><code>apache::vhost { &#39;ssl.example.com&#39;:\n  port    =&gt; &#39;443&#39;,\n  docroot =&gt; &#39;/var/www/ssl&#39;,\n  ssl     =&gt; true,\n}\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre><code>apache::vhost { &#39;fourth.example.com&#39;:\n  port     =&gt; &#39;443&#39;,\n  docroot  =&gt; &#39;/var/www/fourth&#39;,\n  ssl      =&gt; true,\n  ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n  ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n}\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory \n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre><code>apache::vhost { &#39;subdomain.loc&#39;:\n  vhost_name =&gt; &#39;*&#39;,\n  port       =&gt; &#39;80&#39;,\n  virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n  docroot          =&gt; &#39;/var/www&#39;,\n  serveraliases    =&gt; [&#39;*.loc&#39;,],\n}\n</code></pre>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre><code>apache::vhost { &#39;default-ssl&#39;:\n  port            =&gt; 443,\n  ssl             =&gt; true,\n  docroot         =&gt; $docroot,\n  scriptalias     =&gt; $scriptalias,\n  serveradmin     =&gt; $serveradmin,\n  access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n  }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted, meaning Puppet will check the service status to start/stop it. Defaults to &#39;true&#39;, meaning the service is enabled/running.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;false&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::prefork</code> and <code>apache::mod::worker</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::worker</code> or <code>apache::mod::prefork</code> classes with parameters. Valid values are <code>worker</code>, <code>prefork</code>, or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and <code>worker</code> on Debian.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre><code>class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre><code>apache::mod { &#39;rewrite&#39;: }\napache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>deflate</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>fcgid</code></li>\n<li><code>info</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code></li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code></li>\n<li><code>userdir</code>*</li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code></li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template</p>\n\n<pre><code>class { &#39;apache::mod::ssl&#39;: }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre><code>class { &#39;apache&#39;:\n  default_vhost =&gt; false,\n}\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"ruby\"><code>aliases =&gt; [ { alias =&gt; &#39;/alias&#39;, path =&gt; &#39;/path/to/directory&#39; } ],\n</code></pre>\n\n<p>For <code>Alias</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes.  Usage will typically look like:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [\n    { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n    { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n  ],\n}\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p>The directives will be embedded within the <code>Directory</code> directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example: </p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n    addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n  } ],\n}\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n}\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n}\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n}\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n}\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow, Deny&#39; } ],\n}\n</code></pre>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n}\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n}\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:\n$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; },\n]</p>\n\n<p>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  proxy_pass       =&gt; $proxy_pass,\n}</p>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n  redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n}\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n}\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  request_headers =&gt; [\n    &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n    &#39;unset MirrorID&#39;,\n  ],\n}\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n  rewrite_base =&gt; &#39;/blog/&#39;,\n}\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n}\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n}\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code>.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/main/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre><code>apache::vhost { &#39;third.example.com&#39;:\n  port        =&gt; &#39;80&#39;,\n  docroot     =&gt; &#39;/var/www/third&#39;,\n  serveradmin =&gt; &#39;admin@example.com&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre><code>apache::vhost { &#39;sixth.example.com&#39;:\n  serveraliases =&gt; [\n    &#39;sixth.example.org&#39;,\n    &#39;sixth.example.net&#39;,\n  ],\n  port          =&gt; &#39;80&#39;,\n  docroot       =&gt; &#39;/var/www/fifth&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre><code>apache::vhost { &#39;eleventh.example.com&#39;:\n  port        =&gt; &#39;80&#39;,\n  docroot     =&gt; &#39;/var/www/eleventh&#39;,\n  scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre><code>apache::vhost { &#39;fifteenth.example.com&#39;:\n  port           =&gt; &#39;80&#39;,\n  docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n  rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre><code>#The non-ssl vhost\napache::vhost { &#39;first.example.com non-ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n}\n\n#The SSL vhost at the same domain\napache::vhost { &#39;first.example.com ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  port       =&gt; &#39;443&#39;,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre><code>apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n  servername      =&gt; &#39;sixteenth.example.com&#39;,\n  port            =&gt; &#39;80&#39;,\n  docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n  redirect_status =&gt; &#39;permanent&#39;\n  redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39; \n}\napache::vhost { &#39;sixteenth.example.com ssl&#39;:\n  servername =&gt; &#39;sixteenth.example.com&#39;,\n  port       =&gt; &#39;443&#39;,\n  docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre><code>apache::listen { &#39;80&#39;: }\napache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre><code>apache::vhost { &#39;first.example.com&#39;:\n  ip       =&gt; &#39;10.0.0.10&#39;,\n  docroot  =&gt; &#39;/var/www/first&#39;,\n  ip_based =&gt; true,\n}\napache::vhost { &#39;second.example.com&#39;:\n  ip       =&gt; &#39;10.0.0.11&#39;,\n  docroot  =&gt; &#39;/var/www/second&#39;,\n  ip_based =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre><code>apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  ip         =&gt; &#39;10.0.0.10&#39;,\n  port       =&gt; &#39;80&#39;,\n  ip_based   =&gt; true,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n}\napache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  ip         =&gt; &#39;10.0.0.10&#39;,\n  port       =&gt; &#39;443&#39;,\n  ip_based   =&gt; true,\n  docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre><code>apache::vhost { &#39;second.example.com&#39;:\n  ip      =&gt; &#39;10.0.0.20&#39;,\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/second&#39;,\n}\napache::vhost { &#39;third.example.com&#39;:\n  ip      =&gt; &#39;10.0.0.20&#39;,\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/third&#39;,\n}\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre><code>apache::vhost { &#39;fourth.example.com&#39;:\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/fourth&#39;,\n  add_listen =&gt; false,\n}\napache::vhost { &#39;fifth.example.com&#39;:\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/fifth&#39;,\n  add_listen =&gt; false,\n}\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre><code>class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre><code>apache::listen { &#39;80&#39;: }\napache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre><code>class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre><code>  @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n    balancer_cluster =&gt; &#39;puppet00&#39;,\n    url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n    options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n  }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre><code>  apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre><code>  apache::balancer { &#39;puppet01&#39;:\n    proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n  }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, and CentOS 5.8.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We canât access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": "<section class=\"plaintext\"><pre>2013-07-16 Release 0.8.0\nFeatures:\n- Add `servername` parameter to `apache` class\n- Add `proxy_set` parameter to `apache::balancer` define\n\nBugfixes:\n- Fix ordering for multiple `apache::balancer` clusters\n- Fix symlinking for sites-available on Debian-based OSs\n- Fix dependency ordering for recursive confdir management\n- Fix `apache::mod::*` to notify the service on config change\n- Documentation updates\n\n2013-07-09 Release 0.7.0\nChanges:\n- Essentially rewrite the module -- too many to list\n- `apache::vhost` has many abilities -- see README.md for details\n- `apache::mod::*` classes provide httpd mod-loading capabilities\n- `apache` base class is much more configurable\n\nBugfixes:\n- Many. And many more to come\n\n2013-03-2 Release 0.6.0\n- update travis tests (add more supported versions)\n- add access log_parameter\n- make purging of vhost dir configurable\n\n2012-08-24 Release 0.4.0\nChanges:\n- `include apache` is now required when using apache::mod::*\n\nBugfixes:\n- Fix syntax for validate_re\n- Fix formatting in vhost template\n- Fix spec tests such that they pass\n\n2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2013-07-17 07:37:53 -0700",
      "updated_at": "2013-07-17 07:37:53 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.7.0",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.7.0",
      "metadata": {
        "name": "puppetlabs-apache",
        "version": "0.7.0",
        "summary": "Puppet module for Apache",
        "author": "puppetlabs",
        "description": "Module for Apache configuration",
        "dependencies": [
          {
            "name": "puppetlabs/stdlib",
            "version_requirement": ">= 2.2.1"
          },
          {
            "name": "ripienaar/concat",
            "version_requirement": ">= 0.2.0"
          }
        ],
        "types": [
          {
            "parameters": [
              {
                "name": "name",
                "doc": "The name of the module to be managed"
              },
              {
                "name": "lib",
                "doc": "The name of the .so library to be loaded"
              },
              {
                "name": "identifier",
                "doc": "Module identifier string used by LoadModule. Default: module-name_module"
              }
            ],
            "providers": [
              {
                "name": "modfix",
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    "
              },
              {
                "name": "redhat",
                "doc": "Manage Apache 2 modules on RedHat family OSs"
              },
              {
                "name": "a2mod",
                "doc": "Manage Apache 2 modules on Debian and Ubuntu"
              },
              {
                "name": "gentoo",
                "doc": "Manage Apache 2 modules on Gentoo"
              }
            ],
            "name": "a2mod",
            "doc": "Manage Apache 2 modules"
          }
        ],
        "checksums": {
          ".bundle/config": "b898efea5e8783d6593fcdabec67e925",
          ".fixtures.yml": "abe7da15beecab9f2023d55185f90bbb",
          ".nodeset.yml": "f2b857f9fc7a701ff118e28591c12925",
          ".travis.yml": "e18e7deea7676026028b8b287c36935a",
          "CHANGELOG": "47e11d1cafc4b8d98b1bef86361d740a",
          "Gemfile": "d44cd671d70f6ba0143fe2194f43ce33",
          "Gemfile.lock": "e5157995a55ffdf1330b3f0290bed2b2",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "Modulefile": "f4a47cb161d42ed52ffbd5df6c80f748",
          "README.md": "3cc924ee96b5d3cbb250aca430927e66",
          "Rakefile": "0428ea3759a4692c91604396c406a9c1",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "lib/puppet/provider/a2mod.rb": "03ed73d680787dd126ea37a03be0b236",
          "lib/puppet/provider/a2mod/a2mod.rb": "c54df991f0cd63b90ceafad68d6670a5",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "lib/puppet/provider/a2mod/redhat.rb": "89f0a44bc469b6197bd648b8e606ff6b",
          "lib/puppet/type/a2mod.rb": "f230e4c3e6a111bc6dc79ab2287c9a29",
          "manifests/balancer.pp": "5af4450ac33d3150a16ed327c68bdf0c",
          "manifests/balancermember.pp": "d24354d979dd3dc112757f89d69902f5",
          "manifests/default_mods.pp": "0d603665ec37b0d13fbc3ba36a739318",
          "manifests/dev.pp": "606c3cbe27f32b61cfcbd15fb211890c",
          "manifests/init.pp": "33dad1b7fd29fa2475c55de9616cfa30",
          "manifests/listen.pp": "5efc62bd75a0a9a9565b12bd8cb2a9e4",
          "manifests/mod.pp": "bfedd416024e0b6e534f2b91d2ba3877",
          "manifests/mod/alias.pp": "727bd190840c846a3fc2b3fb827c7694",
          "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
          "manifests/mod/auth_kerb.pp": "7876ffdca25396285a26afae8dd030eb",
          "manifests/mod/autoindex.pp": "d4944c390b708411f7d918bcf5fdd11c",
          "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
          "manifests/mod/cgi.pp": "eba237e3f10511c02d8f27b99592103d",
          "manifests/mod/cgid.pp": "e2c08a1500fb894d9ff7a617fe48ef13",
          "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
          "manifests/mod/dav_fs.pp": "5a44c5dda1c942b9e8c5e470864df8ab",
          "manifests/mod/dav_svn.pp": "85a9a3efe5cce6096d89cf29195e6dc1",
          "manifests/mod/deflate.pp": "08ec9f33afca64a7b9993758a6401dea",
          "manifests/mod/dev.pp": "d6a001af402d8e82e952c8243c5e5321",
          "manifests/mod/dir.pp": "212e04396b2a961b82bd0c6a38a98f63",
          "manifests/mod/disk_cache.pp": "d907cd9a341da70632aaac4e95292ebb",
          "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
          "manifests/mod/headers.pp": "224438518465d09c951eb00dbaf8123c",
          "manifests/mod/info.pp": "7404ff73f716bd4b8afce8674d1eb18c",
          "manifests/mod/ldap.pp": "297f34a47ca0790eda7e12c5b73595e0",
          "manifests/mod/mime.pp": "39cf838e44e94eaab866c492c3d81cd8",
          "manifests/mod/mime_magic.pp": "24b3c65c677103c34a53f7f94df407c9",
          "manifests/mod/mpm_event.pp": "02783d5d6c60863f1f91d6fe3c0a21e9",
          "manifests/mod/negotiation.pp": "b783e50edb38cc53d4959dbbbf861498",
          "manifests/mod/passenger.pp": "0020b9f5f2df5ee0c8f5cdd48d4438a3",
          "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
          "manifests/mod/php.pp": "d86b116772c6da431e31983455a72941",
          "manifests/mod/prefork.pp": "115d2c91fe1c422bde5867bacf9d3902",
          "manifests/mod/proxy.pp": "66aa7ceb1cebedbe90088eb49075a248",
          "manifests/mod/proxy_html.pp": "897d150599f9d55b4f8df0ca64c6facc",
          "manifests/mod/proxy_http.pp": "773d0fbb934440a24b3bc87517faa4d4",
          "manifests/mod/python.pp": "0b22df3d0e9a39ce948212e18329155f",
          "manifests/mod/reqtimeout.pp": "96ef75c5a1e37c6765543a19532b15e8",
          "manifests/mod/rewrite.pp": "165fdccc8acc61e5fb088d9917861a3c",
          "manifests/mod/setenvif.pp": "0a3f31f66f96ac7f33bb7cfb6cd7383a",
          "manifests/mod/ssl.pp": "33869e73d42bbc3cc3e621e4df0b50bc",
          "manifests/mod/status.pp": "a33573ec5a7851037127f7584adb1e99",
          "manifests/mod/userdir.pp": "b5ba8a8790e69f04ed66494ec534edd1",
          "manifests/mod/worker.pp": "9d4e77e079ecd69c765e6788799a5b20",
          "manifests/mod/wsgi.pp": "86b284ccc6571fb702eb2647c975d3a3",
          "manifests/mod/xsendfile.pp": "ebe6241729f1b0d8125043a1f34caa54",
          "manifests/namevirtualhost.pp": "27bb9faa95147fcd15ec2aa0a95bc3af",
          "manifests/params.pp": "fa57d03c141b29f3410cb13f1328ad9c",
          "manifests/php.pp": "a4478838b4cf9b0525b04db150cf55b8",
          "manifests/proxy.pp": "54e7657920b580546f3bef3980f2fd03",
          "manifests/python.pp": "2edb06e8119b67a5a62fb24fb280d3e5",
          "manifests/ssl.pp": "7f944d1c103a59ebd04d02e68af69f7a",
          "manifests/vhost.pp": "b62bde2d1763f040d2d55a50f63688e5",
          "spec/classes/apache_spec.rb": "0f0b7d9910cf54eaad5a53acf5b2286d",
          "spec/classes/dev_spec.rb": "ecc212316f7801f427fa4c30ca65e259",
          "spec/classes/mod/auth_kerb_spec.rb": "70e2d94d84724a1b54aff6a9dede1ca6",
          "spec/classes/mod/dav_svn_spec.rb": "6b014a30e017a6cf30bdc4221e4a15b9",
          "spec/classes/mod/dev_spec.rb": "27a9d92460a3e62842b5e64f7154f893",
          "spec/classes/mod/dir_spec.rb": "e462dbea87eb1211e496f60e40538370",
          "spec/classes/mod/fcgid_spec.rb": "3bd6c0638347b763a88e44d5d7216cb0",
          "spec/classes/mod/info_spec.rb": "3921a934a1d41c6e1cce328a45b3cc1d",
          "spec/classes/mod/passenger_spec.rb": "521ed527cc9f43d8f9a4ccde03e84daf",
          "spec/classes/mod/perl_spec.rb": "0ba258605762d1fa25398a08e90157e4",
          "spec/classes/mod/php_spec.rb": "c4050e546d010f0dcb5a8bd580b5f3ed",
          "spec/classes/mod/prefork_spec.rb": "0f7de99f1fb58670f11fde4f7280e99e",
          "spec/classes/mod/proxy_html_spec.rb": "bf313b5dfdd2c9f3054f4b791c32a84c",
          "spec/classes/mod/python_spec.rb": "2b8079e833cbe6313435a72d9fc00cb9",
          "spec/classes/mod/ssl_spec.rb": "53b8ecefa9ce0af2562d8183c063167d",
          "spec/classes/mod/worker_spec.rb": "f3324663e5f93d1b73911276bd984e79",
          "spec/classes/mod/wsgi_spec.rb": "33dc2afdcc040397d8dec6726d439346",
          "spec/classes/params_spec.rb": "9b1984a3e8a485ff128512833400dfbd",
          "spec/defines/mod_spec.rb": "d82643d472be88a65cd202381099ed6f",
          "spec/defines/vhost_spec.rb": "173d47eaca7bb6bf040223c0cf2d6b55",
          "spec/fixtures/modules/site_apache/templates/fake.conf.erb": "6b0431dd0b9a0bf803eb0684300c2cff",
          "spec/fixtures/system/distro_commands.yaml": "d9617961568154565a6725a3831408d3",
          "spec/spec.opts": "c407193b3d9028941ef59edd114f5968",
          "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
          "spec/spec_helper_system.rb": "271b9ac8eebcc9a24f6691e4ef122021",
          "spec/system/basic_spec.rb": "813983916c4bd577f4291857f0ea6de7",
          "spec/system/class_spec.rb": "8fa0bba2db3956b8e45944a30453fd37",
          "spec/system/mod_php_spec.rb": "5b8a2ee664fdb53390fc7c237c4a93aa",
          "spec/system/vhost_spec.rb": "8c1f24de9e391fb6c4ae88ed3084d9a3",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "24ad9db4f6ba0b4fc7ed77b509b4244c",
          "templates/httpd.conf.erb": "2b4002a63f0bf30fe7568da5f350b7a1",
          "templates/listen.erb": "6286aa08f9e28caee54b1e1ee031b9d6",
          "templates/mod/alias.conf.erb": "669fc0a80839be3a81e2f4d4150c3ad6",
          "templates/mod/autoindex.conf.erb": "2421a3c6df32c7e38c2a7a22afdf5728",
          "templates/mod/cgid.conf.erb": "3d4e24001b50eb16561e45f5a8237b32",
          "templates/mod/dav_fs.conf.erb": "fdf1f8cff4708a282ef491d60868d1d7",
          "templates/mod/deflate.conf.erb": "44d54f557a5612be8da04c49dd6da862",
          "templates/mod/dir.conf.erb": "2485da78a2506c14bf51dde38dd03360",
          "templates/mod/disk_cache.conf.erb": "7d3e7a5ee3bd7b6a839924b06a60667f",
          "templates/mod/info.conf.erb": "bb48951beaeaf582d1a1023cb661ac32",
          "templates/mod/ldap.conf.erb": "a8a33f645497e0dbcec363c98be43795",
          "templates/mod/mime.conf.erb": "2fa646fe615e44d137a5d629f868c107",
          "templates/mod/mime_magic.conf.erb": "8a4f61bd7539871cb507cc95f5dbd205",
          "templates/mod/mpm_event.conf.erb": "80097a19d063a4f973465d9ef5c0c0bf",
          "templates/mod/negotiation.conf.erb": "47284b5580b986a6ba32580b6ffb9fd7",
          "templates/mod/passenger.conf.erb": "d9c51acf8e19cd8eaf5621ebfd6edba4",
          "templates/mod/php.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
          "templates/mod/prefork.conf.erb": "f9ec5a7eaea78a19b04fa69f8acd8a84",
          "templates/mod/proxy.conf.erb": "ae1cd187ffbd5cc9b74f8711e313e96b",
          "templates/mod/proxy_html.conf.erb": "67546d56f2d6bb1860338257e3ac9d29",
          "templates/mod/reqtimeout.conf.erb": "81c51851ab7ee7942bef389dc7c0e985",
          "templates/mod/setenvif.conf.erb": "c7ede4173da1915b7ec088201f030c28",
          "templates/mod/ssl.conf.erb": "2567261763976c62a4388abb62ae1e03",
          "templates/mod/status.conf.erb": "da061291068f8e20cf33812373319c40",
          "templates/mod/userdir.conf.erb": "e5a7a7229dbf0de07bc034dd3d108ea2",
          "templates/mod/worker.conf.erb": "9661e7a59eaefb9f17d4c2680c0d243d",
          "templates/namevirtualhost.erb": "fbfca19a639e18e6c477e191344ac8ae",
          "templates/ports_header.erb": "afe35cb5747574b700ebaa0f0b3a626e",
          "templates/vhost.conf.erb": "9ea8ebbd06ae5b6176e8b176947d15d1",
          "templates/vhost/_aliases.erb": "3296d4b5fc00e7277b46356c33e71a70",
          "templates/vhost/_block.erb": "7cb56db9254729b54e8d30686c4f3b1a",
          "templates/vhost/_custom_fragment.erb": "67a4475275ec9208e6421b047b9ed7f4",
          "templates/vhost/_directories.erb": "e16574ce24a1d351e3efd610eca305bd",
          "templates/vhost/_proxy.erb": "3b43dc6a606719681c9b5274be65d60c",
          "templates/vhost/_rack.erb": "ebe187c1bdc81eec9c8e0d9026120b18",
          "templates/vhost/_redirect.erb": "0e2eed04e30240fbbd6c4ef7db6b7058",
          "templates/vhost/_requestheader.erb": "db1b0cdda069ae809b5b83b0871ef991",
          "templates/vhost/_rewrite.erb": "25959fb11677e6f0cc61b76d8a9fcde4",
          "templates/vhost/_scriptalias.erb": "0373372000ca3198594f32ac637a9462",
          "templates/vhost/_serveralias.erb": "2ef30c2152b9284463588f408f7f371f",
          "templates/vhost/_setenv.erb": "da6778b324857234c8441ef346d08969",
          "templates/vhost/_ssl.erb": "c405c430a1e7daf0568c5703d59dad92",
          "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "tests/vhost.pp": "70ce947e12f9b344a24f95a08e622c6c",
          "tests/vhost_ip_based.pp": "7d9f7b6976de7488ab6ff0a6e647fc73",
          "tests/vhost_ssl.pp": "9f3716bc15a9a6760f1d6cc3bf8ce8ac",
          "tests/vhosts_without_listen.pp": "a6692104056a56517b4365bcc816e7f4"
        },
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
        "license": "Apache 2.0"
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.7.0.tar.gz",
      "file_size": 51129,
      "file_md5": "c8ab994e2dcee7681acda5538ba4ce0b",
      "downloads": 1228,
      "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre><code>class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre><code>class { &#39;apache&#39;:\n  default_mods =&gt; false,\n  â¦\n}\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre><code>class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre><code>apache::vhost { &#39;first.example.com&#39;:\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/first&#39;,\n}\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre><code>apache::vhost { &#39;second.example.com&#39;:\n  port          =&gt; &#39;80&#39;,\n  docroot       =&gt; &#39;/var/www/second&#39;,\n  docroot_owner =&gt; &#39;third&#39;,\n  docroot_group =&gt; &#39;third&#39;,\n}\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre><code>apache::vhost { &#39;ssl.example.com&#39;:\n  port    =&gt; &#39;443&#39;,\n  docroot =&gt; &#39;/var/www/ssl&#39;,\n  ssl     =&gt; true,\n}\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre><code>apache::vhost { &#39;fourth.example.com&#39;:\n  port     =&gt; &#39;443&#39;,\n  docroot  =&gt; &#39;/var/www/fourth&#39;,\n  ssl      =&gt; true,\n  ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n  ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n}\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory \n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre><code>apache::vhost { &#39;subdomain.loc&#39;:\n  vhost_name =&gt; &#39;*&#39;,\n  port       =&gt; &#39;80&#39;,\n  virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n  docroot          =&gt; &#39;/var/www&#39;,\n  serveraliases    =&gt; [&#39;*.loc&#39;,],\n}\n</code></pre>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre><code>apache::vhost { &#39;default-ssl&#39;:\n  port            =&gt; 443,\n  ssl             =&gt; true,\n  docroot         =&gt; $docroot,\n  scriptalias     =&gt; $scriptalias,\n  serveradmin     =&gt; $serveradmin,\n  access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n  }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted, meaning Puppet will check the service status to start/stop it. Defaults to &#39;true&#39;, meaning the service is enabled/running.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;false&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::prefork</code> and <code>apache::mod::worker</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::worker</code> or <code>apache::mod::prefork</code> classes with parameters. Valid values are <code>worker</code>, <code>prefork</code>, or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and <code>worker</code> on Debian.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre><code>class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre><code>apache::mod { &#39;rewrite&#39;: }\napache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>deflate</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>fcgid</code></li>\n<li><code>info</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code></li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code></li>\n<li><code>userdir</code>*</li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code></li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template</p>\n\n<pre><code>class { &#39;apache::mod::ssl&#39;: }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre><code>class { &#39;apache&#39;:\n  default_vhost =&gt; false,\n}\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"ruby\"><code>aliases =&gt; [ { alias =&gt; &#39;/alias&#39;, path =&gt; &#39;/path/to/directory&#39; } ],\n</code></pre>\n\n<p>For <code>Alias</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>. Each hash should be of the form of:</p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; } ],\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p>The directives will be embedded within the <code>Directory</code> directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example: </p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n  addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ]\n} ]\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre lang=\"ruby\"><code>  directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }]\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow, Deny&#39; } ],\n</code></pre>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n}\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:\n$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; },\n]</p>\n\n<p>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  proxy_pass       =&gt; $proxy_pass,\n}</p>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n  redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n}\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n}\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  request_headers =&gt; [\n    &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n    &#39;unset MirrorID&#39;,\n  ],\n}\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n  rewrite_base =&gt; &#39;/blog/&#39;,\n}\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n}\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  â¦\n  rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n}\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code>.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/main/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre><code>apache::vhost { &#39;third.example.com&#39;:\n  port        =&gt; &#39;80&#39;,\n  docroot     =&gt; &#39;/var/www/third&#39;,\n  serveradmin =&gt; &#39;admin@example.com&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre><code>apache::vhost { &#39;sixth.example.com&#39;:\n  serveraliases =&gt; [\n    &#39;sixth.example.org&#39;,\n    &#39;sixth.example.net&#39;,\n  ],\n  port          =&gt; &#39;80&#39;,\n  docroot       =&gt; &#39;/var/www/fifth&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre><code>apache::vhost { &#39;eleventh.example.com&#39;:\n  port        =&gt; &#39;80&#39;,\n  docroot     =&gt; &#39;/var/www/eleventh&#39;,\n  scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre><code>apache::vhost { &#39;fifteenth.example.com&#39;:\n  port           =&gt; &#39;80&#39;,\n  docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n  rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre><code>#The non-ssl vhost\napache::vhost { &#39;first.example.com non-ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n}\n\n#The SSL vhost at the same domain\napache::vhost { &#39;first.example.com ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  port       =&gt; &#39;443&#39;,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre><code>apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n  servername      =&gt; &#39;sixteenth.example.com&#39;,\n  port            =&gt; &#39;80&#39;,\n  docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n  redirect_status =&gt; &#39;permanent&#39;\n  redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39; \n}\napache::vhost { &#39;sixteenth.example.com ssl&#39;:\n  servername =&gt; &#39;sixteenth.example.com&#39;,\n  port       =&gt; &#39;443&#39;,\n  docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre><code>apache::listen { &#39;80&#39;: }\napache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre><code>apache::vhost { &#39;first.example.com&#39;:\n  ip       =&gt; &#39;10.0.0.10&#39;,\n  docroot  =&gt; &#39;/var/www/first&#39;,\n  ip_based =&gt; true,\n}\napache::vhost { &#39;second.example.com&#39;:\n  ip       =&gt; &#39;10.0.0.11&#39;,\n  docroot  =&gt; &#39;/var/www/second&#39;,\n  ip_based =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre><code>apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  ip         =&gt; &#39;10.0.0.10&#39;,\n  port       =&gt; &#39;80&#39;,\n  ip_based   =&gt; true,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n}\napache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  ip         =&gt; &#39;10.0.0.10&#39;,\n  port       =&gt; &#39;443&#39;,\n  ip_based   =&gt; true,\n  docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre><code>apache::vhost { &#39;second.example.com&#39;:\n  ip      =&gt; &#39;10.0.0.20&#39;,\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/second&#39;,\n}\napache::vhost { &#39;third.example.com&#39;:\n  ip      =&gt; &#39;10.0.0.20&#39;,\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/third&#39;,\n}\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre><code>apache::vhost { &#39;fourth.example.com&#39;:\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/fourth&#39;,\n  add_listen =&gt; false,\n}\napache::vhost { &#39;fifth.example.com&#39;:\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/fifth&#39;,\n  add_listen =&gt; false,\n}\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre><code>class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre><code>apache::listen { &#39;80&#39;: }\napache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre><code>class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre><code>  @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n    balancer_cluster =&gt; &#39;puppet00&#39;,\n    url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n    options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n  }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre><code>  apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, and CentOS 5.8.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We canât access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": "<section class=\"plaintext\"><pre>2013-07-09 Release 0.7.0\nChanges:\n- Essentially rewrite the module -- too many to list\n- `apache::vhost` has many abilities -- see README.md for details\n- `apache::mod::*` classes provide httpd mod-loading capabilities\n- `apache` base class is much more configurable\n\nBugfixes:\n- Many. And many more to come\n\n2013-03-2 Release 0.6.0\n- update travis tests (add more supported versions)\n- add access log_parameter\n- make purging of vhost dir configurable\n\n2012-08-24 Release 0.4.0\nChanges:\n- `include apache` is now required when using apache::mod::*\n\nBugfixes:\n- Fix syntax for validate_re\n- Fix formatting in vhost template\n- Fix spec tests such that they pass\n\n2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2013-07-09 12:47:10 -0700",
      "updated_at": "2013-07-09 12:47:10 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.0.3",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.0.3",
      "metadata": {
        "name": "puppetlabs-apache",
        "dependencies": [

        ],
        "author": "",
        "license": "",
        "version": "0.0.3",
        "checksums": {
          "tests/ssl.pp": "191912535199531fd631f911c6329e56",
          "manifests/params.pp": "8728cf041cdd94bb0899170eb2b417d9",
          "tests/vhost.pp": "1b91e03c8ef89a7ecb6793831ac18399",
          "manifests/php.pp": "8a5ca4035b1c22892923f3fde55e3d5e",
          "lib/puppet/provider/a2mod/a2mod.rb": "18c5bb180b75a2375e95e07f88a94257",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "manifests/dev.pp": "bc54a5af648cb04b7b3bb0e3f7be6543",
          "manifests/ssl.pp": "11ed1861298c72cca3a706480bb0b67c",
          "files/test.vhost": "0602022c19a7b6b289f218c7b93c1aea",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "manifests/vhost.pp": "7806a6c098e217da046d0555314756c4",
          "lib/puppet/type/a2mod.rb": "0e1b4843431413a10320ac1f6a055d15",
          "templates/vhost-default.conf.erb": "ed64a53af0d7bad762176a98c9ea3e62",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "tests/apache.pp": "4eac4a7ef68499854c54a78879e25535",
          "Modulefile": "9b7a414bf15b06afe2f011068fcaff52",
          "manifests/init.pp": "9ef7e081c832bca8f861c3a9feb9949d"
        },
        "types": [
          {
            "name": "a2mod",
            "doc": "Manage Apache 2 modules on Debian and Ubuntu",
            "parameters": [
              {
                "name": "name",
                "doc": "The name of the module to be managed"
              }
            ],
            "providers": [
              {
                "name": "a2mod",
                "doc": "Manage Apache 2 modules on Debian and Ubuntu  Required binaries: ``a2enmod``, ``a2dismod``.    Default for ``operatingsystem`` == ``debianubuntu``.  "
              }
            ],
            "properties": [
              {
                "name": "ensure",
                "doc": "The basic property that the resource should be in.  Valid values are ``present``, ``absent``."
              }
            ]
          }
        ],
        "source": ""
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.0.3.tar.gz",
      "file_size": 3929,
      "file_md5": "cad6c53e9e79698253187610ae8382fc",
      "downloads": 798,
      "readme": null,
      "changelog": null,
      "license": null,
      "created_at": "2010-06-26 16:19:57 -0700",
      "updated_at": "2010-06-26 16:19:57 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.0.2",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.0.2",
      "metadata": {
        "name": "puppetlabs-apache",
        "dependencies": [

        ],
        "author": "",
        "license": "",
        "version": "0.0.2",
        "checksums": {
          "tests/ssl.pp": "191912535199531fd631f911c6329e56",
          "manifests/params.pp": "f137ab035e6cd5bdbbd50beeac4c68b0",
          "tests/vhost.pp": "1b91e03c8ef89a7ecb6793831ac18399",
          "manifests/php.pp": "8a5ca4035b1c22892923f3fde55e3d5e",
          "lib/puppet/provider/a2mod/a2mod.rb": "18c5bb180b75a2375e95e07f88a94257",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "manifests/dev.pp": "bc54a5af648cb04b7b3bb0e3f7be6543",
          "manifests/ssl.pp": "11ed1861298c72cca3a706480bb0b67c",
          "files/test.vhost": "0602022c19a7b6b289f218c7b93c1aea",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "manifests/vhost.pp": "b43a4d6efb4563341efe8092677aac6f",
          "lib/puppet/type/a2mod.rb": "0e1b4843431413a10320ac1f6a055d15",
          "templates/vhost-default.conf.erb": "9055aed946e1111c30ab81fedac2c8b0",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "tests/apache.pp": "4eac4a7ef68499854c54a78879e25535",
          "Modulefile": "86f48ebf97e079cf0dc395881d87ecef",
          "manifests/init.pp": "168dfe06fb9ad8d67a2effeea4477f57"
        },
        "types": [
          {
            "name": "a2mod",
            "doc": "Manage Apache 2 modules on Debian and Ubuntu",
            "parameters": [
              {
                "name": "name",
                "doc": "The name of the module to be managed"
              }
            ],
            "providers": [
              {
                "name": "a2mod",
                "doc": "Manage Apache 2 modules on Debian and Ubuntu  Required binaries: ``a2enmod``, ``a2dismod``.    Default for ``operatingsystem`` == ``debianubuntu``.  "
              }
            ],
            "properties": [
              {
                "name": "ensure",
                "doc": "The basic property that the resource should be in.  Valid values are ``present``, ``absent``."
              }
            ]
          }
        ],
        "source": ""
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.0.2.tar.gz",
      "file_size": 4006,
      "file_md5": "e6bca59ddbe26ae653611935d1f24e70",
      "downloads": 436,
      "readme": null,
      "changelog": null,
      "license": null,
      "created_at": "2010-05-23 09:52:55 -0700",
      "updated_at": "2010-05-23 09:52:55 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.1.1",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.1.1",
      "metadata": {
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
        "summary": "Puppet module for Apache",
        "description": "Module for Apache configuration",
        "checksums": {
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "1be4e8d809ed8369de44a022254bfb7b",
          "spec/spec_helper.rb": "980111cecb2c99b91ac846d7b0862578",
          "manifests/vhost/redirect.pp": "8fdef0e0e8da73e9fb30f819de2a4464",
          "manifests/vhost/proxy.pp": "39a7983c5be0db66dde1d2f47f883321",
          "manifests/proxy.pp": "03db2be400cc08939b3566063bc58789",
          "manifests/php.pp": "203071fafab369cacc8b7bec80eec481",
          "CHANGELOG": "3705f6d39cde99023ee6de89f40910a1",
          "templates/vhost-redirect.conf.erb": "f12c8165c2e9a688402ec8484ef6c59c",
          "manifests/ssl.pp": "af7b58dbaf198b74f4b3785ceacb44c1",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "spec/classes/params_spec.rb": "384b7b99be6d2bcd684f2ecf54d2df3e",
          "lib/puppet/type/a2mod.rb": "8b3005913ca51cb51e94d568f249880e",
          "spec/classes/mod/wsgi_spec.rb": "8e34c9ab7fc445d13d9ed318d0a34cdf",
          "manifests/params.pp": "c1a03be37c7e2bcd0030442553488589",
          "templates/vhost-default.conf.erb": "707b9b87fb97fa8c99ce3b1743f732cb",
          "spec/classes/mod/auth_kerb_spec.rb": "f8431c93f2a863b2664cadcb13c71e86",
          "Rakefile": "65bc94e790a918bcfd07686c2d51e043",
          "manifests/python.pp": "5f00d0b2f5fc916fdabff20d35e11846",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "spec/defines/vhost_spec.rb": "66140938dc89df1bf2458663d9663fbd",
          "spec/classes/dev_spec.rb": "e0392f699206ca40a5c66c51b2349ff7",
          "Modulefile": "458789fa5a3035e3e094c128f53c4624",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "lib/puppet/provider/a2mod/a2mod.rb": "0acf42d3d670a9915c5a3f46ae7335f1",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "README.md": "9576bc9c836ef349cc62f78c635db815",
          "manifests/vhost.pp": "56daed888b554900d5694625da74b012",
          "manifests/mod/auth_kerb.pp": "a7e4d1789f23528c7a19690340387a85",
          "manifests/init.pp": "cb62a3aba1af2eebb7a08e45ee399065",
          "tests/ssl.pp": "191912535199531fd631f911c6329e56",
          "spec/classes/ssl_spec.rb": "f5d8c8a22a3b08647c1d7b5bdaea5fdd",
          "spec/classes/python_spec.rb": "af7d22879b16d3ce4a5ed70d4d880903",
          "manifests/mod/wsgi.pp": "90ef340ac19106fe801656091d3f9a4b",
          "tests/vhost.pp": "4a97d258da130cad784249a6097fd0ac",
          "tests/apache.pp": "4eac4a7ef68499854c54a78879e25535",
          "templates/vhost-proxy.conf.erb": "3f6e23159809c4aa5a20b441d12a09ad",
          "spec/classes/mod/python_spec.rb": "26a3d76a16abf7f2c7c9f7767196ecd1",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
          "spec/defines/vhost/redirect_spec.rb": "337fb5c89ab5fc790ecb76f8b169a7e6",
          "spec/defines/vhost/proxy_spec.rb": "7c992871919bff127c45ea1d41f4a3fe",
          "manifests/mod/python.pp": "d68627ba8c02bcd2cf910e02e45321ee",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "templates/test.vhost.erb": "31eb6a591acc699fe4e67a7cf367d0ab",
          "spec/classes/php_spec.rb": "aa98098c3404325c941ad1aa71295640",
          "spec/classes/apache_spec.rb": "e4aff27ddc0ff9d53f2a701efde12ac0",
          "manifests/dev.pp": "aecfbf399723a86b00681b03a1cd13d9"
        },
        "author": "puppetlabs",
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "types": [
          {
            "doc": "Manage Apache 2 modules on Debian and Ubuntu",
            "properties": [
              {
                "doc": "The basic property that the resource should be in.  Valid values are `present`, `absent`.",
                "name": "ensure"
              }
            ],
            "providers": [
              {
                "doc": "Manage Apache 2 modules on Debian and Ubuntu\n\nRequired binaries: `a2enmod`, `a2dismod`.  Default for `operatingsystem` == `debian, ubuntu`.",
                "name": "a2mod"
              },
              {
                "doc": "Manage Apache 2 modules on Gentoo\n\nDefault for `operatingsystem` == `gentoo`.",
                "name": "gentoo"
              },
              {
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    ",
                "name": "modfix"
              }
            ],
            "name": "a2mod",
            "parameters": [
              {
                "doc": "The name of the module to be managed",
                "name": "name"
              }
            ]
          }
        ],
        "version": "0.1.1",
        "license": "Apache 2.0",
        "name": "puppetlabs-apache",
        "dependencies": [
          {
            "version_requirement": ">= 0.0.4",
            "name": "puppetlabs/firewall"
          },
          {
            "version_requirement": ">= 2.2.1",
            "name": "puppetlabs/stdlib"
          }
        ]
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.1.1.tar.gz",
      "file_size": 13280,
      "file_md5": "b00db93a5ee05c20207bbadcf85af2d6",
      "downloads": 308,
      "readme": "<section class=\"markdown\"><h1>Puppetlabs module for Apache</h1>\n\n<p>Apache is widely-used web server and this module will allow to configure\nvarious modules and setup virtual hosts with minimal effort.</p>\n\n<h2>Basic usage</h2>\n\n<p>To install Apache</p>\n\n<pre><code>class {&#39;apache&#39;:  }\n</code></pre>\n\n<p>To install the Apache PHP module</p>\n\n<pre><code>class {&#39;apache::php&#39;: }\n</code></pre>\n\n<h2>Configure a virtual host</h2>\n\n<p>You can easily configure many parameters of a virtual host. A minimal\nexample is:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n}\n</code></pre>\n\n<p>A slightly more complicated example, which moves the docroot and\nlogfile to an alternate location, might be:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n    docroot         =&gt; &#39;/home/www.example.com/docroot/&#39;,\n    logroot         =&gt; &#39;/srv/www.example.com/logroot/&#39;,\n    serveradmin     =&gt; &#39;web@example.com&#39;,\n    serveraliases   =&gt; [&#39;example.com&#39;,],\n}\n</code></pre>\n\n<h2>Notes</h2>\n\n<p>Since Puppet cannot ensure that all parent directories exist you need to\nmanage these yourself. In the more advanced example above, you need to ensure \nthat <code>/home/www.example.com</code> and <code>/srv/www.example.com</code> directories exist.</p>\n\n<h2>Contributors</h2>\n\n<ul>\n<li>A cast of hundreds, hopefully you too soon</li>\n</ul>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": "<section class=\"plaintext\"><pre>2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2012-08-08 00:23:44 -0700",
      "updated_at": "2012-08-08 00:23:44 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.2.2",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.2.2",
      "metadata": {
        "description": "Module for Apache configuration",
        "checksums": {
          "spec/classes/mod/python_spec.rb": "26a3d76a16abf7f2c7c9f7767196ecd1",
          "spec/defines/vhost/redirect_spec.rb": "337fb5c89ab5fc790ecb76f8b169a7e6",
          "spec/classes/apache_spec.rb": "e4aff27ddc0ff9d53f2a701efde12ac0",
          "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
          "spec/classes/params_spec.rb": "384b7b99be6d2bcd684f2ecf54d2df3e",
          "manifests/params.pp": "5f2b932c398e9b76c03066bc6d9b4c89",
          "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
          "templates/vhost-proxy.conf.erb": "3f6e23159809c4aa5a20b441d12a09ad",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "spec/defines/vhost/proxy_spec.rb": "7c992871919bff127c45ea1d41f4a3fe",
          "tests/vhost.pp": "4a97d258da130cad784249a6097fd0ac",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "manifests/mod/proxy_html.pp": "fb43e85c277b11681463a48a9653d06a",
          "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
          "templates/test.vhost.erb": "31eb6a591acc699fe4e67a7cf367d0ab",
          "Modulefile": "86dc96cf38ab113ef4d9abbe733276e8",
          "spec/spec_helper.rb": "980111cecb2c99b91ac846d7b0862578",
          "spec/defines/vhost_spec.rb": "66140938dc89df1bf2458663d9663fbd",
          "manifests/python.pp": "5f00d0b2f5fc916fdabff20d35e11846",
          "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
          "manifests/mod/php.pp": "ff7549863eba4c7722240ff9c2f140f3",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
          "templates/mod/php.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
          "manifests/init.pp": "2135f1adcc4f7f077a55c31f114e0bbc",
          "templates/httpd.conf.erb": "93971da2f62ebaee55cc8691b2073860",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "templates/vhost-default.conf.erb": "707b9b87fb97fa8c99ce3b1743f732cb",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "manifests/vhost/redirect.pp": "8fdef0e0e8da73e9fb30f819de2a4464",
          "manifests/proxy.pp": "03db2be400cc08939b3566063bc58789",
          "spec/classes/ssl_spec.rb": "f5d8c8a22a3b08647c1d7b5bdaea5fdd",
          "spec/classes/mod/wsgi_spec.rb": "8e34c9ab7fc445d13d9ed318d0a34cdf",
          "manifests/mod/cgi.pp": "eba237e3f10511c02d8f27b99592103d",
          "manifests/mod.pp": "aebcb145746dee43bde73278634c4fff",
          "CHANGELOG": "3705f6d39cde99023ee6de89f40910a1",
          "Rakefile": "65bc94e790a918bcfd07686c2d51e043",
          "manifests/mod/userdir.pp": "a7d01097caba2b3dcec7d6e96e0bf500",
          "manifests/mod/default.pp": "8a2bc7a4312d60fd09ac4eadceab9330",
          "manifests/mod/dav_fs.pp": "1240d81890bc436838a0d0568d019a5a",
          "spec/classes/python_spec.rb": "af7d22879b16d3ce4a5ed70d4d880903",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "spec/classes/dev_spec.rb": "e0392f699206ca40a5c66c51b2349ff7",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "spec/classes/mod/auth_kerb_spec.rb": "f8431c93f2a863b2664cadcb13c71e86",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "1be4e8d809ed8369de44a022254bfb7b",
          "manifests/mod/wsgi.pp": "90ef340ac19106fe801656091d3f9a4b",
          "tests/ssl.pp": "191912535199531fd631f911c6329e56",
          "manifests/mod/proxy.pp": "d789eec804b4e887858cde19429afc7d",
          "templates/mod/disk_cache.conf.erb": "bc2cb0003944e688d3137781f6a49997",
          "manifests/vhost/proxy.pp": "39a7983c5be0db66dde1d2f47f883321",
          "templates/vhost-redirect.conf.erb": "f12c8165c2e9a688402ec8484ef6c59c",
          "manifests/mod/auth_kerb.pp": "a7e4d1789f23528c7a19690340387a85",
          "manifests/mod/python.pp": "d68627ba8c02bcd2cf910e02e45321ee",
          "lib/puppet/provider/a2mod/redhat.rb": "cb8db52784eef2a50cd495773a5c46a5",
          "spec/classes/php_spec.rb": "aa98098c3404325c941ad1aa71295640",
          "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
          "manifests/ssl.pp": "af7b58dbaf198b74f4b3785ceacb44c1",
          "manifests/mod/disk_cache.pp": "8488851c7301f50e75e92890d40e6300",
          "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
          "lib/puppet/type/a2mod.rb": "30ea8400197a833dc3fee3e095b01d9e",
          "templates/mod/proxy.conf.erb": "54cd35ef17c78c18f10be50eebb4142c",
          "manifests/vhost.pp": "56daed888b554900d5694625da74b012",
          "manifests/mod/proxy_http.pp": "f1a0fd5eb51ba564c2bd68e6669bc7dc",
          "templates/mod/userdir.conf.erb": "fd73fe59b6a5dcf16a5df9af91c187dd",
          "lib/puppet/provider/a2mod/a2mod.rb": "8b4836cfbcc980e60c30cc046bc77cd5",
          "manifests/dev.pp": "aecfbf399723a86b00681b03a1cd13d9",
          "manifests/php.pp": "203071fafab369cacc8b7bec80eec481",
          "README.md": "9576bc9c836ef349cc62f78c635db815"
        },
        "summary": "Puppet module for Apache",
        "dependencies": [
          {
            "name": "puppetlabs/firewall",
            "version_requirement": ">= 0.0.4"
          },
          {
            "name": "puppetlabs/stdlib",
            "version_requirement": ">= 2.2.1"
          }
        ],
        "author": "puppetlabs",
        "version": "0.2.2",
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "license": "Apache 2.0",
        "types": [
          {
            "doc": "Manage Apache 2 modules on Debian and Ubuntu",
            "providers": [
              {
                "doc": "Manage Apache 2 modules on Debian and Ubuntu\n\nRequired binaries: `a2enmod`, `a2dismod`.  Default for `operatingsystem` == `debian, ubuntu`.",
                "name": "a2mod"
              },
              {
                "doc": "Manage Apache 2 modules on Gentoo\n\nDefault for `operatingsystem` == `gentoo`.",
                "name": "gentoo"
              },
              {
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    ",
                "name": "modfix"
              },
              {
                "doc": "Manage Apache 2 modules on RedHat family OSs\n\nDefault for `osfamily` == `redhat`.",
                "name": "redhat"
              }
            ],
            "name": "a2mod",
            "parameters": [
              {
                "doc": "The name of the module to be managed",
                "name": "name"
              },
              {
                "doc": "The name of the .so library to be loaded",
                "name": "lib"
              }
            ],
            "properties": [
              {
                "doc": "The basic property that the resource should be in.  Valid values are `present`, `absent`.",
                "name": "ensure"
              }
            ]
          }
        ],
        "name": "puppetlabs-apache",
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache"
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.2.2.tar.gz",
      "file_size": 27385,
      "file_md5": "1f95ea71528835d562c99366cea3d649",
      "downloads": 248,
      "readme": "<section class=\"markdown\"><h1>Puppetlabs module for Apache</h1>\n\n<p>Apache is widely-used web server and this module will allow to configure\nvarious modules and setup virtual hosts with minimal effort.</p>\n\n<h2>Basic usage</h2>\n\n<p>To install Apache</p>\n\n<pre><code>class {&#39;apache&#39;:  }\n</code></pre>\n\n<p>To install the Apache PHP module</p>\n\n<pre><code>class {&#39;apache::php&#39;: }\n</code></pre>\n\n<h2>Configure a virtual host</h2>\n\n<p>You can easily configure many parameters of a virtual host. A minimal\nexample is:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n}\n</code></pre>\n\n<p>A slightly more complicated example, which moves the docroot and\nlogfile to an alternate location, might be:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n    docroot         =&gt; &#39;/home/www.example.com/docroot/&#39;,\n    logroot         =&gt; &#39;/srv/www.example.com/logroot/&#39;,\n    serveradmin     =&gt; &#39;web@example.com&#39;,\n    serveraliases   =&gt; [&#39;example.com&#39;,],\n}\n</code></pre>\n\n<h2>Notes</h2>\n\n<p>Since Puppet cannot ensure that all parent directories exist you need to\nmanage these yourself. In the more advanced example above, you need to ensure \nthat <code>/home/www.example.com</code> and <code>/srv/www.example.com</code> directories exist.</p>\n\n<h2>Contributors</h2>\n\n<ul>\n<li>A cast of hundreds, hopefully you too soon</li>\n</ul>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": "<section class=\"plaintext\"><pre>2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2012-08-16 01:03:41 -0700",
      "updated_at": "2012-08-16 01:03:41 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.2.0",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.2.0",
      "metadata": {
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
        "summary": "Puppet module for Apache",
        "description": "Module for Apache configuration",
        "checksums": {
          "manifests/dev.pp": "aecfbf399723a86b00681b03a1cd13d9",
          "spec/classes/ssl_spec.rb": "f5d8c8a22a3b08647c1d7b5bdaea5fdd",
          "CHANGELOG": "3705f6d39cde99023ee6de89f40910a1",
          "manifests/mod/auth_kerb.pp": "a7e4d1789f23528c7a19690340387a85",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "1be4e8d809ed8369de44a022254bfb7b",
          "spec/classes/mod/wsgi_spec.rb": "8e34c9ab7fc445d13d9ed318d0a34cdf",
          "manifests/php.pp": "203071fafab369cacc8b7bec80eec481",
          "spec/defines/vhost_spec.rb": "66140938dc89df1bf2458663d9663fbd",
          "spec/classes/params_spec.rb": "384b7b99be6d2bcd684f2ecf54d2df3e",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "templates/vhost-redirect.conf.erb": "f12c8165c2e9a688402ec8484ef6c59c",
          "manifests/mod/disk_cache.pp": "8488851c7301f50e75e92890d40e6300",
          "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
          "manifests/ssl.pp": "af7b58dbaf198b74f4b3785ceacb44c1",
          "spec/defines/vhost/redirect_spec.rb": "337fb5c89ab5fc790ecb76f8b169a7e6",
          "Modulefile": "71a1a62d5c2c636cc0d8cb77b2a77086",
          "manifests/mod/proxy.pp": "d789eec804b4e887858cde19429afc7d",
          "manifests/params.pp": "5f2b932c398e9b76c03066bc6d9b4c89",
          "tests/vhost.pp": "4a97d258da130cad784249a6097fd0ac",
          "manifests/vhost/redirect.pp": "8fdef0e0e8da73e9fb30f819de2a4464",
          "lib/puppet/provider/a2mod/redhat.rb": "cb8db52784eef2a50cd495773a5c46a5",
          "manifests/mod/proxy_html.pp": "fb43e85c277b11681463a48a9653d06a",
          "manifests/mod/cgi.pp": "eba237e3f10511c02d8f27b99592103d",
          "lib/puppet/type/a2mod.rb": "30ea8400197a833dc3fee3e095b01d9e",
          "manifests/python.pp": "5f00d0b2f5fc916fdabff20d35e11846",
          "manifests/mod/python.pp": "d68627ba8c02bcd2cf910e02e45321ee",
          "manifests/proxy.pp": "03db2be400cc08939b3566063bc58789",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "templates/vhost-proxy.conf.erb": "3f6e23159809c4aa5a20b441d12a09ad",
          "manifests/mod/proxy_http.pp": "f1a0fd5eb51ba564c2bd68e6669bc7dc",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "templates/mod/disk_cache.conf.erb": "bc2cb0003944e688d3137781f6a49997",
          "README.md": "9576bc9c836ef349cc62f78c635db815",
          "manifests/init.pp": "2135f1adcc4f7f077a55c31f114e0bbc",
          "spec/classes/python_spec.rb": "af7d22879b16d3ce4a5ed70d4d880903",
          "templates/test.vhost.erb": "31eb6a591acc699fe4e67a7cf367d0ab",
          "manifests/vhost/proxy.pp": "39a7983c5be0db66dde1d2f47f883321",
          "manifests/mod/dav_fs.pp": "1240d81890bc436838a0d0568d019a5a",
          "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
          "templates/mod/userdir.conf.erb": "fd73fe59b6a5dcf16a5df9af91c187dd",
          "spec/classes/dev_spec.rb": "e0392f699206ca40a5c66c51b2349ff7",
          "Rakefile": "65bc94e790a918bcfd07686c2d51e043",
          "spec/classes/apache_spec.rb": "e4aff27ddc0ff9d53f2a701efde12ac0",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "templates/httpd.conf.erb": "93971da2f62ebaee55cc8691b2073860",
          "templates/vhost-default.conf.erb": "707b9b87fb97fa8c99ce3b1743f732cb",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "spec/defines/vhost/proxy_spec.rb": "7c992871919bff127c45ea1d41f4a3fe",
          "spec/spec_helper.rb": "980111cecb2c99b91ac846d7b0862578",
          "spec/classes/mod/python_spec.rb": "26a3d76a16abf7f2c7c9f7767196ecd1",
          "manifests/mod/wsgi.pp": "90ef340ac19106fe801656091d3f9a4b",
          "templates/mod/php.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
          "templates/mod/proxy.conf.erb": "54cd35ef17c78c18f10be50eebb4142c",
          "lib/puppet/provider/a2mod/a2mod.rb": "8b4836cfbcc980e60c30cc046bc77cd5",
          "spec/classes/mod/auth_kerb_spec.rb": "f8431c93f2a863b2664cadcb13c71e86",
          "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
          "manifests/mod.pp": "c99ae7ae9105924b8e59eb66d03ffed7",
          "manifests/mod/php.pp": "ff7549863eba4c7722240ff9c2f140f3",
          "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
          "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
          "manifests/mod/userdir.pp": "a7d01097caba2b3dcec7d6e96e0bf500",
          "tests/ssl.pp": "191912535199531fd631f911c6329e56",
          "manifests/vhost.pp": "56daed888b554900d5694625da74b012",
          "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "spec/classes/php_spec.rb": "aa98098c3404325c941ad1aa71295640",
          "manifests/mod/default.pp": "8c0aa01c285360d3a2af62cfd6f83e9e"
        },
        "author": "puppetlabs",
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "types": [
          {
            "doc": "Manage Apache 2 modules on Debian and Ubuntu",
            "properties": [
              {
                "doc": "The basic property that the resource should be in.  Valid values are `present`, `absent`.",
                "name": "ensure"
              }
            ],
            "name": "a2mod",
            "parameters": [
              {
                "doc": "The name of the module to be managed",
                "name": "name"
              },
              {
                "doc": "The name of the .so library to be loaded",
                "name": "lib"
              }
            ],
            "providers": [
              {
                "doc": "Manage Apache 2 modules on Debian and Ubuntu\n\nRequired binaries: `a2enmod`, `a2dismod`.  Default for `operatingsystem` == `debian, ubuntu`.",
                "name": "a2mod"
              },
              {
                "doc": "Manage Apache 2 modules on Gentoo\n\nDefault for `operatingsystem` == `gentoo`.",
                "name": "gentoo"
              },
              {
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    ",
                "name": "modfix"
              },
              {
                "doc": "Manage Apache 2 modules on RedHat family OSs\n\nDefault for `osfamily` == `redhat`.",
                "name": "redhat"
              }
            ]
          }
        ],
        "version": "0.2.0",
        "license": "Apache 2.0",
        "name": "puppetlabs-apache",
        "dependencies": [
          {
            "version_requirement": ">= 0.0.4",
            "name": "puppetlabs/firewall"
          },
          {
            "version_requirement": ">= 2.2.1",
            "name": "puppetlabs/stdlib"
          }
        ]
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.2.0.tar.gz",
      "file_size": 27387,
      "file_md5": "e7edaffc2d96a3d0ac629006ec12b117",
      "downloads": 233,
      "readme": "<section class=\"markdown\"><h1>Puppetlabs module for Apache</h1>\n\n<p>Apache is widely-used web server and this module will allow to configure\nvarious modules and setup virtual hosts with minimal effort.</p>\n\n<h2>Basic usage</h2>\n\n<p>To install Apache</p>\n\n<pre><code>class {&#39;apache&#39;:  }\n</code></pre>\n\n<p>To install the Apache PHP module</p>\n\n<pre><code>class {&#39;apache::php&#39;: }\n</code></pre>\n\n<h2>Configure a virtual host</h2>\n\n<p>You can easily configure many parameters of a virtual host. A minimal\nexample is:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n}\n</code></pre>\n\n<p>A slightly more complicated example, which moves the docroot and\nlogfile to an alternate location, might be:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n    docroot         =&gt; &#39;/home/www.example.com/docroot/&#39;,\n    logroot         =&gt; &#39;/srv/www.example.com/logroot/&#39;,\n    serveradmin     =&gt; &#39;web@example.com&#39;,\n    serveraliases   =&gt; [&#39;example.com&#39;,],\n}\n</code></pre>\n\n<h2>Notes</h2>\n\n<p>Since Puppet cannot ensure that all parent directories exist you need to\nmanage these yourself. In the more advanced example above, you need to ensure \nthat <code>/home/www.example.com</code> and <code>/srv/www.example.com</code> directories exist.</p>\n\n<h2>Contributors</h2>\n\n<ul>\n<li>A cast of hundreds, hopefully you too soon</li>\n</ul>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": "<section class=\"plaintext\"><pre>2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2012-08-13 18:22:45 -0700",
      "updated_at": "2012-08-13 18:22:45 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.3.0",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.3.0",
      "metadata": {
        "checksums": {
          "spec/fixtures/modules/firewall/spec/unit/puppet/provider/iptables_spec.rb": "5107b980166d30e6bd25ea025d3484e3",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_absolute_path.rb": "385137ac24a2dec6cecc4e6ea75be442",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_array.rb": "875ca4356cb0d7a10606fb146b4a3d11",
          "spec/fixtures/modules/firewall/lib/puppet/util/ipcidr.rb": "225adf61f5de40fa04b4e936e388b801",
          "spec/fixtures/modules/firewall/spec/monkey_patches/alias_should_to_must.rb": "7cd4065c63f06f1ab3aaa1c5f92af947",
          "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/reverse_spec.rb": "48169990e59081ccbd112b6703418ce4",
          "spec/fixtures/modules/stdlib/CHANGELOG": "7a0821b69956493f568059a3aeec087b",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/unique_spec.rb": "2df8b3b2edb9503943cb4dcb4a371867",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/num2bool_spec.rb": "7c80e016a73122fa5f921dac02626d89",
          "spec/fixtures/modules/firewall/CONTRIBUTING.md": "346969b756bc432a2a2fab4307ebb93a",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/strftime_spec.rb": "bf140883ecf3254277306fa5b25f0344",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/grep_spec.rb": "78179537496a7150469e591a95e255d8",
          "spec/fixtures/modules/firewall/LICENSE": "9dc93ec9f7c0bc97ab9aad3ecd8abba9",
          "spec/fixtures/modules/firewall/spec/unit/puppet/type/firewallchain_spec.rb": "564e1b1f4266e1659bd8e6ed050646a1",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/is_string_spec.rb": "5c015d8267de852da3a12b984e077092",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_slength.rb": "0ca530d1d3b45c3fe2d604c69acfc22f",
          "spec/fixtures/modules/stdlib/spec/functions/ensure_resource_spec.rb": "0ff2b16e3b1d23603c6cbfca08109c02",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_domain_name.rb": "fba9f855df3bbf90d72dfd5201f65d2b",
          "manifests/mod/dev.pp": "71234485e642f0e8cdd8774670d48b7f",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/lstrip_spec.rb": "1fc2c2d80b5f724a358c3cfeeaae6249",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/sort_spec.rb": "7039cd230a94e95d9d1de2e1094acae2",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/abs.rb": "c2f2c4a62a56e7adbf5cf0b292e081fc",
          "spec/fixtures/modules/firewall/gemfiles/gemfile.ci": "b49c789db2ea4a42c166bb5b7024533c",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_hash.rb": "8c7d9a05084dab0389d1b779c8a05b1a",
          "spec/fixtures/modules/stdlib/README.markdown": "5e7b077c2b63a84f2b5f8d3cc6b7365e",
          "spec/defines/vhost/redirect_spec.rb": "337fb5c89ab5fc790ecb76f8b169a7e6",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/sort.rb": "504b033b438461ca4f9764feeb017833",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/range.rb": "033048bba333fe429e77e0f2e91db25f",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/time_spec.rb": "b6d0279062779efe5153fe5cfafc5bbd",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_hash.rb": "e9cfaca68751524efe16ecf2f958a9a0",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/getvar.rb": "10bf744212947bc6a7bfd2c9836dbd23",
          "spec/fixtures/modules/firewall/spec/puppet_spec/fixtures.rb": "147446d18612c8395ac65be10b1cd9ab",
          "manifests/mod/python.pp": "d68627ba8c02bcd2cf910e02e45321ee",
          "spec/fixtures/modules/stdlib/tests/file_line.pp": "67727539aa7b7dd76f06626fe734f7f7",
          "spec/fixtures/modules/firewall/lib/puppet/type/firewallchain.rb": "89a8f6df0596081a4fd7343bd8d2f7ba",
          "spec/fixtures/modules/firewall/spec/fixtures/iptables/conversion_hash.rb": "a3aa01960bbc9de06aa1925a2fb7e36f",
          "README.md": "9342c60532e2950fae48eac3bbcf8d73",
          "spec/fixtures/modules/stdlib/tests/init.pp": "1d98070412c76824e66db4b7eb74d433",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/empty_spec.rb": "028c30267d648a172d8a81a9262c3abe",
          "spec/classes/mod/python_spec.rb": "26a3d76a16abf7f2c7c9f7767196ecd1",
          "manifests/mod.pp": "b07b1f5ab911549827dcf22b28a3b7f4",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/swapcase.rb": "4902f38f0b9292afec66d40fee4b02ec",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/is_hash_spec.rb": "408e121a5e30c4c5c4a0a383beb6e209",
          "spec/fixtures/modules/stdlib/lib/facter/util/puppet_settings.rb": "9f1d2593d0ae56bfca89d4b9266aeee1",
          "spec/fixtures/modules/firewall/lib/puppet/provider/firewallchain/iptables_chain.rb": "f773208d8ac7301c5894eb03cef0bd36",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/hash.rb": "75fd86c01d5b1e50be1bc8b22d3d0a61",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/capitalize.rb": "14481fc8c7c83fe002066ebcf6722f17",
          "manifests/mod/ssl.pp": "2ffd543847785cd2f916f244f8742448",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/rstrip.rb": "8a0d69876bdbc88a2054ba41c9c38961",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/keys_spec.rb": "35cc2ed490dc68da6464f245dfebd617",
          "spec/classes/python_spec.rb": "af7d22879b16d3ce4a5ed70d4d880903",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/capitalize_spec.rb": "82a4209a033fc88c624f708c12e64e2a",
          "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/is_ip_address_spec.rb": "6040a9bae4e5c853966148b634501157",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/is_float_spec.rb": "6545a48ae74b5b9986f46e0cc177f200",
          "spec/fixtures/modules/stdlib/README_DEVELOPER.markdown": "9040e68353f663024ab41cea6373b255",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/type/file_line_spec.rb": "79e157384acccc3c6bb1e01233845e52",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/has_key.rb": "7cd9728c38f0b0065f832dabd62b0e7e",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/values_at_spec.rb": "de45fd8abbc4c037c3c4fac2dcf186f9",
          "spec/fixtures/modules/stdlib/spec/unit/facter/root_home_spec.rb": "4f4c4236ac2368d2e27fd2f3eb606a19",
          "CHANGELOG": "3705f6d39cde99023ee6de89f40910a1",
          "templates/httpd.conf.erb": "93971da2f62ebaee55cc8691b2073860",
          "templates/vhost-default.conf.erb": "707b9b87fb97fa8c99ce3b1743f732cb",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "1be4e8d809ed8369de44a022254bfb7b",
          "spec/fixtures/modules/stdlib/manifests/stages.pp": "cc6ed1751d334b0ea278c0335c7f0b5a",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "spec/fixtures/modules/firewall/Rakefile": "17ab6da1866351b9ece1ddef91627697",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/validate_re_spec.rb": "b21292ad2f30c0d43ab2f0c2df0ba7d5",
          "spec/fixtures/modules/firewall/CHANGELOG.md": "e87877cc22f0c0edff065764bbb44ba2",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/zip_spec.rb": "06a86e4e70d2aea63812582aae1d26c4",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/chop.rb": "4cc840d63ec172d8533a613676391d39",
          "templates/test.vhost.erb": "31eb6a591acc699fe4e67a7cf367d0ab",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_numeric.rb": "6283dd52935fb1aba41958e50c85b1ed",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/upcase_spec.rb": "813668919bc62cdd1d349dafc19fbbb3",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/str2bool_spec.rb": "a3f9c1e4121a58e02c1614cc771d180d",
          "spec/fixtures/modules/firewall/spec/unit/puppet/util/firewall_spec.rb": "2fb1969b40b519f1b87cbc76bb819b32",
          "spec/fixtures/modules/firewall/lib/facter/ip6tables_version.rb": "091123ad703f1706686bca4398c5b06f",
          "spec/fixtures/modules/stdlib/RELEASE_PROCESS.markdown": "1981f306c0047720e37be07bb6c976a4",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_ip_address.rb": "a53f6e3a5855954148230846ccb3e04d",
          "manifests/mod/userdir.pp": "a7d01097caba2b3dcec7d6e96e0bf500",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/shuffle_spec.rb": "2141a54d2fb3cf725b88184d639677f4",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/to_bytes.rb": "83f23c33adbfa42b2a9d9fc2db3daeb4",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/zip.rb": "a80782461ed9465f0cd0c010936f1855",
          "spec/fixtures/modules/firewall/examples/ip6tables/test.pp": "c6b85866eae5e4c764f052ccad57405b",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/ensure_resource.rb": "5c2e7990e22e5a532931627b4aaf545b",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/validate_string_spec.rb": "3c04a751615a86656f04d313028a4cf4",
          "spec/fixtures/modules/firewall/lib/puppet/type/firewall.rb": "8735218a193e749d26c24fbb28fdd689",
          "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/rstrip_spec.rb": "a408e933753c9c323a05d7079d32cbb3",
          "Modulefile": "34feb44b894a365e45df041aee543e3f",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/type.rb": "62f914d6c90662aaae40c5539701be60",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/parsejson_spec.rb": "37ab84381e035c31d6a3dd9bf73a3d53",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/time.rb": "08d88d52abd1e230e3a2f82107545d48",
          "manifests/ssl.pp": "7f944d1c103a59ebd04d02e68af69f7a",
          "spec/fixtures/modules/firewall/spec/puppet_spec/files.rb": "34e40f4dcdc90d1138a471d883c33d79",
          "spec/classes/dev_spec.rb": "e0392f699206ca40a5c66c51b2349ff7",
          "spec/defines/vhost_spec.rb": "66140938dc89df1bf2458663d9663fbd",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/is_numeric_spec.rb": "0527750a0960bae36c14f6705fd50f37",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/fqdn_rotate.rb": "20743a138c56fc806a35cb7b60137dbc",
          "spec/fixtures/modules/firewall/Modulefile": "40f947a769cca5c2846ba83ea7b624ef",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/size_spec.rb": "d126b696b21a8cd754d58f78ddba6f06",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/validate_bool_spec.rb": "9b1e15d42a7aaa45e56cca0e60ac1fc3",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/upcase.rb": "a5744a74577cfa136fca2835e75888d3",
          "manifests/params.pp": "f9bd340370fc15c7aed58d71d710953d",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/range_spec.rb": "91d69115dea43f62a2dca9a10467d836",
          "manifests/mod/dav_fs.pp": "1240d81890bc436838a0d0568d019a5a",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/flatten.rb": "251d63696564254d41742ecbfbfcb9fd",
          "spec/fixtures/modules/firewall/lib/puppet/util/firewall.rb": "b04edd8793aabdc4901fffd18d5e9178",
          "manifests/vhost.pp": "ecbabee9423ca9a122b8311dc625a16b",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/parsejson.rb": "e7f968c34928107b84cd0860daf50ab1",
          "spec/fixtures/modules/firewall/spec/unit/puppet/provider/iptables_chain_spec.rb": "966ea9470fb65a5c43fad8232d874c04",
          "spec/fixtures/modules/firewall/spec/unit/puppet/type/firewall_spec.rb": "e48514ac1405a5715c09e604829252b0",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/prefix_spec.rb": "16a95b321d76e773812693c80edfbe36",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/lstrip.rb": "210b103f78622e099f91cc2956b6f741",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/validate_array_spec.rb": "3fd3c8cca1c69e47e89acf27fafd2ddb",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/swapcase_spec.rb": "0660ce8807608cc8f98ad1edfa76a402",
          "spec/fixtures/modules/stdlib/lib/facter/root_home.rb": "f559294cceafcf70799339627d94871d",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/delete_spec.rb": "723517ac32bd4fb17c861660a28e862e",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/merge_spec.rb": "15dae59473437569f7430525ee84a8c1",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/delete.rb": "4a3c82d0ed8ea4c953658efdd06fe7c9",
          "templates/mod/disk_cache.conf.erb": "bc2cb0003944e688d3137781f6a49997",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/bool2num_spec.rb": "67c3055d5d4e4c9fbcaca82038a09081",
          "spec/fixtures/modules/firewall/examples/iptables/test.pp": "608a010ba80896c788b0ca916b02f58b",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/shuffle.rb": "6445e6b4dc62c37b184a60eeaf34414b",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/member_spec.rb": "067c60985efc57022ca1c5508d74d77f",
          "spec/fixtures/modules/firewall/lib/puppet/provider/firewall/iptables.rb": "7d678c903d414325c18f33319fb2c6c2",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_string.rb": "2bd9a652bbb2668323eee6c57729ff64",
          "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/validate_absolute_path_spec.rb": "07839082d24d5a7628fd5bce6c8b35c3",
          "manifests/dev.pp": "c263f8db2a35361e9dfdef30477f8ee3",
          "manifests/mod/default.pp": "8a2bc7a4312d60fd09ac4eadceab9330",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_string.rb": "6afcbc51f83f0714348b8d61e06ea7eb",
          "spec/fixtures/modules/firewall/README.markdown": "8f83ed587843dcc52c8729f37328a42e",
          "spec/fixtures/modules/stdlib/spec/watchr.rb": "b588ddf9ef1c19ab97aa892cc776da73",
          "manifests/init.pp": "333146fe0bbc882207c7b78dc4b2e8cd",
          "spec/fixtures/modules/firewall/spec/unit/facter/iptables_spec.rb": "ebb008f0e01530a49007228ca1a81097",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/strip_spec.rb": "a01796bebbdabd3fad12b0662ea5966e",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/prefix.rb": "6a2d86233c9435afc1738f60a0c34576",
          "manifests/vhost/proxy.pp": "6a09bd5018f556025de54632cb02d061",
          "spec/fixtures/modules/stdlib/lib/facter/puppet_vardir.rb": "c7ddc97e8a84ded3dd93baa5b9b3283d",
          "templates/mod/php.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
          "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/to_bytes_spec.rb": "80aaf68cf7e938e46b5278c1907af6be",
          "manifests/proxy.pp": "54e7657920b580546f3bef3980f2fd03",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/str2saltedsha512.rb": "49afad7b386be38ce53deaefef326e85",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/getvar_spec.rb": "842bf88d47077a9ae64097b6e39c3364",
          "manifests/mod/proxy.pp": "d789eec804b4e887858cde19429afc7d",
          "spec/fixtures/modules/firewall/lib/puppet/provider/firewall/ip6tables.rb": "1be207954750c56fc038f66d7013bb08",
          "manifests/mod/proxy_html.pp": "fb43e85c277b11681463a48a9653d06a",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/is_integer_spec.rb": "8237a89bdb32c69c5bd4a275eb7df8b7",
          "templates/mod/userdir.conf.erb": "fd73fe59b6a5dcf16a5df9af91c187dd",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/strftime.rb": "e02e01a598ca5d7d6eee0ba22440304a",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/get_module_path_spec.rb": "24c75fb78853f05d35d041b59232c3f4",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/type/anchor_spec.rb": "a5478a72a7fab2d215f39982a9230c18",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/downcase_spec.rb": "b0197829512f2e92a2d2b06ce8e2226f",
          "spec/fixtures/modules/stdlib/Modulefile": "a34f853220bd4a89e0fbb0df5ab508c4",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/str2saltedsha512_spec.rb": "215579d1a544bd62b251bf048c565b26",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_float.rb": "491937483b14fbe2594a6e0e9af6acf9",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/bool2num.rb": "8e627eee990e811e35e7e838c586bd77",
          "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/squeeze.rb": "ae5aafb7478cced0ba0c23856e45cec5",
          "spec/fixtures/modules/firewall/examples/iptables/run.sh": "564f117a8cd0fefe32c9f0edd90fa95b",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_array.rb": "72b29289b8af1cfc3662ef9be78911b8",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/delete_at_spec.rb": "5a4287356b5bd36a6e4c100421215b8e",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/flatten_spec.rb": "c1c039171d1baef89452092731b9e003",
          "spec/fixtures/modules/stdlib/lib/puppet/type/anchor.rb": "cc1da7acfe1259d5b86a64e2dea42c34",
          "manifests/mod/wsgi.pp": "90ef340ac19106fe801656091d3f9a4b",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/keys.rb": "eb6ac815ea14fbf423580ed903ef7bad",
          "spec/fixtures/modules/firewall/spec/puppet_spec/matchers.rb": "8e77dc7317de7fc2ff289fb716623b6c",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/values.rb": "066a6e4170e5034edb9a80463dff2bb5",
          "tests/vhost.pp": "4a97d258da130cad784249a6097fd0ac",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/fqdn_rotate_spec.rb": "c053cb14a26e820713c882040f0569ab",
          "spec/fixtures/modules/stdlib/spec/unit/facter/util/puppet_settings_spec.rb": "345bcbef720458e25be0190b7638e4d9",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/parseyaml_spec.rb": "65dfed872930ffe0d21954c15daaf498",
          "spec/classes/php_spec.rb": "aa98098c3404325c941ad1aa71295640",
          "spec/fixtures/modules/firewall/examples/iptables/readme.pp": "4cdceafc073291d192473e2c88e42681",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/downcase.rb": "9204a04c2a168375a38d502db8811bbe",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/type_spec.rb": "422f2c33458fe9b0cc9614d16f7573ba",
          "spec/fixtures/modules/stdlib/lib/puppet/provider/file_line/ruby.rb": "f0f61ee3076d6b8f5883872abe844f37",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb": "4ddffdf5954b15863d18f392950b88f4",
          "Rakefile": "0254db5d3fc38c67a2c160d7296a24f8",
          "lib/puppet/provider/a2mod/redhat.rb": "cb8db52784eef2a50cd495773a5c46a5",
          "spec/classes/mod/wsgi_spec.rb": "8e34c9ab7fc445d13d9ed318d0a34cdf",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/merge.rb": "52281fe881b762e2adfef20f58dc4180",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_re.rb": "c6664b3943bc820415a43f16372dc2a9",
          "spec/fixtures/modules/firewall/spec/spec_helper.rb": "23f11c52c807885b606650b4fae43dab",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/provider/file_line/ruby_spec.rb": "e8cd7432739cb212d40a9148523bd4d7",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "spec/defines/vhost/proxy_spec.rb": "7c992871919bff127c45ea1d41f4a3fe",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/chomp_spec.rb": "3cd8e2fe6b12efeffad94cce5b693b7c",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/parseyaml.rb": "6cfee471d287c8d110a3629a9ac31b69",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/num2bool.rb": "dbdc81982468ebb8ac24ab78d7097ad3",
          "spec/classes/mod/auth_kerb_spec.rb": "f8431c93f2a863b2664cadcb13c71e86",
          "spec/fixtures/modules/firewall/lib/puppet/provider/firewall.rb": "f4c747685c2c8ef97fe78732c8153c75",
          "manifests/php.pp": "a4478838b4cf9b0525b04db150cf55b8",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/has_key_spec.rb": "3e4e730d98bbdfb88438b6e08e45868e",
          "manifests/mod/cgi.pp": "eba237e3f10511c02d8f27b99592103d",
          "lib/puppet/type/a2mod.rb": "30ea8400197a833dc3fee3e095b01d9e",
          "manifests/vhost/redirect.pp": "c4b1b5eefb11d4a4025096e1aa13d6cf",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/values_spec.rb": "0ac9e141ed1f612d7cc224f747b2d1d9",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/str2bool.rb": "846b49d623cb847c1870d7ac4a6bedf3",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/is_mac_address_spec.rb": "644cd498b426ff2f9ea9cbc5d8e141d7",
          "spec/fixtures/modules/firewall/spec/puppet_spec/verbose.rb": "2e0e0e74f2c5ec0408d455e773755bf9",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/values_at.rb": "094ac110ce9f7a5b16d0c80a0cf2243c",
          "spec/fixtures/modules/stdlib/Rakefile": "f37e6131fe7de9a49b09d31596f5fbf1",
          "manifests/mod/proxy_http.pp": "f1a0fd5eb51ba564c2bd68e6669bc7dc",
          "spec/fixtures/modules/firewall/lib/facter/iptables_version.rb": "facbd760223f236538b731c1d1f6cf8f",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/chop_spec.rb": "4e9534d25b952b261c9f46add677c390",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/unique.rb": "217ccce6d23235af92923f50f8556963",
          "manifests/python.pp": "2edb06e8119b67a5a62fb24fb280d3e5",
          "spec/fixtures/modules/stdlib/spec/monkey_patches/alias_should_to_must.rb": "7cd4065c63f06f1ab3aaa1c5f92af947",
          "templates/mod/proxy.conf.erb": "54cd35ef17c78c18f10be50eebb4142c",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_integer.rb": "6520458000b349f1c7ba7c9ed382ae0b",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/strip.rb": "273d547c7b05c0598556464dfd12f5fd",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/join_spec.rb": "c3b50c39390a86b493511be2c6722235",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/is_domain_name_spec.rb": "8eed3a9eb9334bf6a473ad4e2cabc2ec",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_mac_address.rb": "288bd4b38d4df42a83681f13e7eaaee0",
          "templates/vhost-redirect.conf.erb": "f12c8165c2e9a688402ec8484ef6c59c",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/join.rb": "b28087823456ca5cf943de4a233ac77f",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/loadyaml.rb": "2b912f257aa078e376d3b3f6a86c2a00",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/delete_at.rb": "6bc24b79390d463d8be95396c963381a",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/abs_spec.rb": "0a5864a29a8e9e99acc483268bd5917c",
          "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/reverse.rb": "1386371c0f5301055fdf99079e862b3e",
          "spec/fixtures/modules/firewall/spec/unit/puppet/util/ipcidr_spec.rb": "1a6eeb2dd7c9634fcfb60d8ead6e1d79",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/validate_hash_spec.rb": "399d936c9532e7f328291027b7535ea7",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/member.rb": "541e67d06bc4155e79b00843a125e9bc",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/defined_with_params.rb": "ffab4433d03f32b551f2ea024a2948fc",
          "templates/vhost-proxy.conf.erb": "3f6e23159809c4aa5a20b441d12a09ad",
          "spec/fixtures/modules/stdlib/spec/monkey_patches/publicize_methods.rb": "1b03a4af94f7dac35f7c2809caf372ca",
          "lib/puppet/provider/a2mod/a2mod.rb": "8b4836cfbcc980e60c30cc046bc77cd5",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "spec/classes/ssl_spec.rb": "f5d8c8a22a3b08647c1d7b5bdaea5fdd",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/squeeze_spec.rb": "df5b349c208a9a2a4d4b8e6d9324756f",
          "spec/classes/params_spec.rb": "384b7b99be6d2bcd684f2ecf54d2df3e",
          "spec/fixtures/modules/stdlib/spec/spec_helper.rb": "861b1bb0ee51878f2edf2c8f8449596b",
          "spec/fixtures/modules/stdlib/manifests/init.pp": "f2ba5f36e7227ed87bbb69034fc0de8b",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/hash_spec.rb": "826337a92d8f7a189b7ac19615db0ed7",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/grep.rb": "5682995af458b05f3b53dd794c4bf896",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/get_module_path.rb": "d4bf50da25c0b98d26b75354fa1bcc45",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/validate_slength_spec.rb": "a1b4d805149dc0143e9a57e43e1f84bf",
          "spec/fixtures/modules/stdlib/LICENSE": "38a048b9d82e713d4e1b2573e370a756",
          "manifests/mod/php.pp": "ff7549863eba4c7722240ff9c2f140f3",
          "manifests/mod/disk_cache.pp": "8488851c7301f50e75e92890d40e6300",
          "manifests/mod/auth_kerb.pp": "a7e4d1789f23528c7a19690340387a85",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/size.rb": "8972d48c0f9e487d659bd7326b40b642",
          "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
          "spec/fixtures/modules/stdlib/spec/functions/defined_with_params_spec.rb": "3bdfac38e3d6f06140ff2e926f4ebed2",
          "spec/classes/apache_spec.rb": "e4aff27ddc0ff9d53f2a701efde12ac0",
          "spec/fixtures/modules/stdlib/spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/chomp.rb": "7040b3348d2f770f265cf4c8c25c51c5",
          "spec/fixtures/modules/stdlib/lib/puppet/parser/functions/empty.rb": "ae92905c9d94ddca30bf56b7b1dabedf",
          "spec/fixtures/modules/firewall/spec/monkey_patches/publicize_methods.rb": "1b03a4af94f7dac35f7c2809caf372ca",
          "spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/is_array_spec.rb": "8c020af9c360abdbbf1ba887bb26babe",
          "spec/fixtures/modules/stdlib/lib/puppet/type/file_line.rb": "09381c3e04c684f4ba702381c727acbd"
        },
        "types": [
          {
            "providers": [
              {
                "doc": "Manage Apache 2 modules on Debian and Ubuntu\n\nRequired binaries: `a2enmod`, `a2dismod`.  Default for `operatingsystem` == `debian, ubuntu`.",
                "name": "a2mod"
              },
              {
                "doc": "Manage Apache 2 modules on Gentoo\n\nDefault for `operatingsystem` == `gentoo`.",
                "name": "gentoo"
              },
              {
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    ",
                "name": "modfix"
              },
              {
                "doc": "Manage Apache 2 modules on RedHat family OSs\n\nDefault for `osfamily` == `redhat`.",
                "name": "redhat"
              }
            ],
            "doc": "Manage Apache 2 modules on Debian and Ubuntu",
            "parameters": [
              {
                "doc": "The name of the module to be managed",
                "name": "name"
              },
              {
                "doc": "The name of the .so library to be loaded",
                "name": "lib"
              }
            ],
            "name": "a2mod",
            "properties": [
              {
                "doc": "The basic property that the resource should be in.  Valid values are `present`, `absent`.",
                "name": "ensure"
              }
            ]
          }
        ],
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
        "version": "0.3.0",
        "dependencies": [
          {
            "name": "puppetlabs/firewall",
            "version_requirement": ">= 0.0.4"
          },
          {
            "name": "puppetlabs/stdlib",
            "version_requirement": ">= 2.2.1"
          }
        ],
        "summary": "Puppet module for Apache",
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "author": "puppetlabs",
        "description": "Module for Apache configuration",
        "name": "puppetlabs-apache",
        "license": "Apache 2.0"
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.3.0.tar.gz",
      "file_size": 740331,
      "file_md5": "306d26a53b2ee31a1c51a9ee801aa3c8",
      "downloads": 216,
      "readme": "<section class=\"markdown\"><h1>Puppetlabs module for Apache</h1>\n\n<p>Apache is widely-used web server and this module will allow to configure\nvarious modules and setup virtual hosts with minimal effort.</p>\n\n<h2>Basic usage</h2>\n\n<p>To install Apache</p>\n\n<pre><code>class {&#39;apache&#39;:  }\n</code></pre>\n\n<p>To install the Apache PHP module</p>\n\n<pre><code>class {&#39;apache::mod::php&#39;: }\n</code></pre>\n\n<h2>Configure a virtual host</h2>\n\n<p>You can easily configure many parameters of a virtual host. A minimal\nexample is:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n}\n</code></pre>\n\n<p>A slightly more complicated example, which moves the docroot and\nlogfile to an alternate location, might be:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n    docroot         =&gt; &#39;/home/www.example.com/docroot/&#39;,\n    logroot         =&gt; &#39;/srv/www.example.com/logroot/&#39;,\n    serveradmin     =&gt; &#39;web@example.com&#39;,\n    serveraliases   =&gt; [&#39;example.com&#39;,],\n}\n</code></pre>\n\n<h2>Notes</h2>\n\n<p>Since Puppet cannot ensure that all parent directories exist you need to\nmanage these yourself. In the more advanced example above, you need to ensure \nthat <code>/home/www.example.com</code> and <code>/srv/www.example.com</code> directories exist.</p>\n\n<h2>Contributors</h2>\n\n<ul>\n<li>A cast of hundreds, hopefully you too soon</li>\n</ul>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": "<section class=\"plaintext\"><pre>2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2012-08-22 18:24:38 -0700",
      "updated_at": "2012-08-22 18:24:38 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.0.1",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.0.1",
      "metadata": {
        "name": "puppetlabs-apache",
        "dependencies": [

        ],
        "author": "",
        "license": "",
        "version": "0.0.1",
        "types": [
          {
            "name": "a2mod",
            "doc": "Manage Apache 2 modules on Debian and Ubuntu",
            "parameters": [
              {
                "name": "name",
                "doc": "The name of the module to be managed"
              }
            ],
            "providers": [
              {
                "name": "a2mod",
                "doc": "Manage Apache 2 modules on Debian and Ubuntu  Required binaries: ``a2enmod``, ``a2dismod``.    Default for ``operatingsystem`` == ``debianubuntu``.  "
              }
            ],
            "properties": [
              {
                "name": "ensure",
                "doc": "The basic property that the resource should be in.  Valid values are ``present``, ``absent``."
              }
            ]
          }
        ],
        "checksums": {
          "tests/ssl.pp": "191912535199531fd631f911c6329e56",
          "manifests/params.pp": "71734796921dbdbfd58f503622527616",
          "tests/vhost.pp": "1b91e03c8ef89a7ecb6793831ac18399",
          "manifests/php.pp": "b78cc593f1c4cd800c906e0891c9b11f",
          "lib/puppet/provider/a2mod/a2mod.rb": "18c5bb180b75a2375e95e07f88a94257",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "manifests/dev.pp": "510813942246cc9a7786d8f2d8874a35",
          "manifests/ssl.pp": "b4334a161a2ba5fa8a62cf7b38f352c8",
          "files/test.vhost": "0602022c19a7b6b289f218c7b93c1aea",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "manifests/vhost.pp": "cbc4657b0cce5cd432057393d5f6b0c2",
          "lib/puppet/type/a2mod.rb": "0e1b4843431413a10320ac1f6a055d15",
          "templates/vhost-default.conf.erb": "9055aed946e1111c30ab81fedac2c8b0",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "tests/apache.pp": "4eac4a7ef68499854c54a78879e25535",
          "Modulefile": "a627da3a70651c38fc6578a4f4e100a8",
          "manifests/init.pp": "dc503e26e8021351078813b541c4bd3d"
        },
        "source": ""
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.0.1.tar.gz",
      "file_size": 3435,
      "file_md5": "95abc51e9b772421c1c254ba467ea02b",
      "downloads": 173,
      "readme": null,
      "changelog": null,
      "license": null,
      "created_at": "2010-05-20 22:43:44 -0700",
      "updated_at": "2010-05-20 22:43:44 -0700",
      "deleted_at": null
    },
    {
      "uri": "/v3/releases/puppetlabs-apache-0.2.1",
      "module": {
        "uri": "/v3/modules/puppetlabs-apache",
        "name": "apache",
        "owner": {
          "uri": "/v3/users/puppetlabs",
          "username": "puppetlabs",
          "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
        }
      },
      "version": "0.2.1",
      "metadata": {
        "description": "Module for Apache configuration",
        "checksums": {
          "templates/vhost-redirect.conf.erb": "f12c8165c2e9a688402ec8484ef6c59c",
          "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
          "manifests/mod/proxy_http.pp": "f1a0fd5eb51ba564c2bd68e6669bc7dc",
          "spec/classes/dev_spec.rb": "e0392f699206ca40a5c66c51b2349ff7",
          "spec/classes/python_spec.rb": "af7d22879b16d3ce4a5ed70d4d880903",
          "manifests/mod.pp": "aebcb145746dee43bde73278634c4fff",
          "spec/spec_helper.rb": "980111cecb2c99b91ac846d7b0862578",
          "spec/classes/mod/wsgi_spec.rb": "8e34c9ab7fc445d13d9ed318d0a34cdf",
          "manifests/mod/cgi.pp": "eba237e3f10511c02d8f27b99592103d",
          "lib/puppet/type/a2mod.rb": "30ea8400197a833dc3fee3e095b01d9e",
          "spec/unit/provider/a2mod/gentoo_spec.rb": "1be4e8d809ed8369de44a022254bfb7b",
          "Rakefile": "65bc94e790a918bcfd07686c2d51e043",
          "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
          "manifests/params.pp": "5f2b932c398e9b76c03066bc6d9b4c89",
          "spec/classes/php_spec.rb": "aa98098c3404325c941ad1aa71295640",
          "spec/classes/mod/auth_kerb_spec.rb": "f8431c93f2a863b2664cadcb13c71e86",
          "manifests/mod/auth_kerb.pp": "a7e4d1789f23528c7a19690340387a85",
          "manifests/vhost.pp": "56daed888b554900d5694625da74b012",
          "lib/puppet/provider/a2mod/redhat.rb": "cb8db52784eef2a50cd495773a5c46a5",
          "lib/puppet/provider/a2mod/a2mod.rb": "8b4836cfbcc980e60c30cc046bc77cd5",
          "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
          "spec/classes/mod/python_spec.rb": "26a3d76a16abf7f2c7c9f7767196ecd1",
          "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
          "Modulefile": "e9573c6e3e67a37baf484e124dff2006",
          "CHANGELOG": "3705f6d39cde99023ee6de89f40910a1",
          "templates/httpd.conf.erb": "93971da2f62ebaee55cc8691b2073860",
          "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
          "manifests/vhost/proxy.pp": "39a7983c5be0db66dde1d2f47f883321",
          "templates/mod/proxy.conf.erb": "54cd35ef17c78c18f10be50eebb4142c",
          "manifests/ssl.pp": "af7b58dbaf198b74f4b3785ceacb44c1",
          "templates/mod/userdir.conf.erb": "fd73fe59b6a5dcf16a5df9af91c187dd",
          "spec/defines/vhost/redirect_spec.rb": "337fb5c89ab5fc790ecb76f8b169a7e6",
          "tests/vhost.pp": "4a97d258da130cad784249a6097fd0ac",
          "templates/mod/php.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
          "templates/mod/disk_cache.conf.erb": "bc2cb0003944e688d3137781f6a49997",
          "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
          "manifests/mod/userdir.pp": "a7d01097caba2b3dcec7d6e96e0bf500",
          "templates/vhost-default.conf.erb": "707b9b87fb97fa8c99ce3b1743f732cb",
          "manifests/dev.pp": "aecfbf399723a86b00681b03a1cd13d9",
          "manifests/mod/dav_fs.pp": "1240d81890bc436838a0d0568d019a5a",
          "manifests/mod/proxy_html.pp": "fb43e85c277b11681463a48a9653d06a",
          "manifests/mod/disk_cache.pp": "8488851c7301f50e75e92890d40e6300",
          "spec/defines/vhost/proxy_spec.rb": "7c992871919bff127c45ea1d41f4a3fe",
          "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
          "manifests/mod/proxy.pp": "d789eec804b4e887858cde19429afc7d",
          "manifests/init.pp": "2135f1adcc4f7f077a55c31f114e0bbc",
          "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
          "manifests/php.pp": "203071fafab369cacc8b7bec80eec481",
          "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
          "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
          "spec/classes/apache_spec.rb": "e4aff27ddc0ff9d53f2a701efde12ac0",
          "spec/classes/ssl_spec.rb": "f5d8c8a22a3b08647c1d7b5bdaea5fdd",
          "manifests/mod/default.pp": "f578d8ffd6d6d4a566fedd8a0e728e2c",
          "manifests/mod/php.pp": "ff7549863eba4c7722240ff9c2f140f3",
          "manifests/mod/wsgi.pp": "90ef340ac19106fe801656091d3f9a4b",
          "templates/vhost-proxy.conf.erb": "3f6e23159809c4aa5a20b441d12a09ad",
          "README.md": "9576bc9c836ef349cc62f78c635db815",
          "manifests/vhost/redirect.pp": "8fdef0e0e8da73e9fb30f819de2a4464",
          "tests/ssl.pp": "191912535199531fd631f911c6329e56",
          "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
          "manifests/mod/python.pp": "d68627ba8c02bcd2cf910e02e45321ee",
          "spec/classes/params_spec.rb": "384b7b99be6d2bcd684f2ecf54d2df3e",
          "manifests/python.pp": "5f00d0b2f5fc916fdabff20d35e11846",
          "templates/test.vhost.erb": "31eb6a591acc699fe4e67a7cf367d0ab",
          "spec/defines/vhost_spec.rb": "66140938dc89df1bf2458663d9663fbd",
          "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
          "manifests/proxy.pp": "03db2be400cc08939b3566063bc58789",
          "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd"
        },
        "summary": "Puppet module for Apache",
        "dependencies": [
          {
            "name": "puppetlabs/firewall",
            "version_requirement": ">= 0.0.4"
          },
          {
            "name": "puppetlabs/stdlib",
            "version_requirement": ">= 2.2.1"
          }
        ],
        "author": "puppetlabs",
        "version": "0.2.1",
        "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
        "license": "Apache 2.0",
        "types": [
          {
            "doc": "Manage Apache 2 modules on Debian and Ubuntu",
            "name": "a2mod",
            "providers": [
              {
                "doc": "Manage Apache 2 modules on Debian and Ubuntu\n\nRequired binaries: `a2enmod`, `a2dismod`.  Default for `operatingsystem` == `debian, ubuntu`.",
                "name": "a2mod"
              },
              {
                "doc": "Manage Apache 2 modules on Gentoo\n\nDefault for `operatingsystem` == `gentoo`.",
                "name": "gentoo"
              },
              {
                "doc": "Dummy provider for A2mod.\n\n    Fake nil resources when there is no crontab binary available. Allows\n    puppetd to run on a bootstrapped machine before a Cron package has been\n    installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n    ",
                "name": "modfix"
              },
              {
                "doc": "Manage Apache 2 modules on RedHat family OSs\n\nDefault for `osfamily` == `redhat`.",
                "name": "redhat"
              }
            ],
            "parameters": [
              {
                "doc": "The name of the module to be managed",
                "name": "name"
              },
              {
                "doc": "The name of the .so library to be loaded",
                "name": "lib"
              }
            ],
            "properties": [
              {
                "doc": "The basic property that the resource should be in.  Valid values are `present`, `absent`.",
                "name": "ensure"
              }
            ]
          }
        ],
        "name": "puppetlabs-apache",
        "project_page": "https://github.com/puppetlabs/puppetlabs-apache"
      },
      "tags": [
        "apache",
        "web",
        "virtualhost",
        "httpd",
        "centos",
        "rhel",
        "debian",
        "ubuntu",
        "apache2",
        "ssl",
        "passenger",
        "wsgi",
        "proxy",
        "virtual_host"
      ],
      "file_uri": "/v3/files/puppetlabs-apache-0.2.1.tar.gz",
      "file_size": 27389,
      "file_md5": "8c8f4d98653673a2563372c3f8e5dfcb",
      "downloads": 159,
      "readme": "<section class=\"markdown\"><h1>Puppetlabs module for Apache</h1>\n\n<p>Apache is widely-used web server and this module will allow to configure\nvarious modules and setup virtual hosts with minimal effort.</p>\n\n<h2>Basic usage</h2>\n\n<p>To install Apache</p>\n\n<pre><code>class {&#39;apache&#39;:  }\n</code></pre>\n\n<p>To install the Apache PHP module</p>\n\n<pre><code>class {&#39;apache::php&#39;: }\n</code></pre>\n\n<h2>Configure a virtual host</h2>\n\n<p>You can easily configure many parameters of a virtual host. A minimal\nexample is:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n}\n</code></pre>\n\n<p>A slightly more complicated example, which moves the docroot and\nlogfile to an alternate location, might be:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n    priority        =&gt; &#39;10&#39;,\n    vhost_name      =&gt; &#39;192.0.2.1&#39;,\n    port            =&gt; &#39;80&#39;,\n    docroot         =&gt; &#39;/home/www.example.com/docroot/&#39;,\n    logroot         =&gt; &#39;/srv/www.example.com/logroot/&#39;,\n    serveradmin     =&gt; &#39;web@example.com&#39;,\n    serveraliases   =&gt; [&#39;example.com&#39;,],\n}\n</code></pre>\n\n<h2>Notes</h2>\n\n<p>Since Puppet cannot ensure that all parent directories exist you need to\nmanage these yourself. In the more advanced example above, you need to ensure \nthat <code>/home/www.example.com</code> and <code>/srv/www.example.com</code> directories exist.</p>\n\n<h2>Contributors</h2>\n\n<ul>\n<li>A cast of hundreds, hopefully you too soon</li>\n</ul>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
      "changelog": "<section class=\"plaintext\"><pre>2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
      "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
      "created_at": "2012-08-16 00:25:44 -0700",
      "updated_at": "2012-08-16 00:25:44 -0700",
      "deleted_at": null
    }
  ]
}
