added $service_name parameter

added peruser and event mpms

Workaround for apxs-loaded modules

On some OSes (FreeBSD) apxs tool is used to put LoadModule directives
into httpd.conf during apache package (and apache modules)
insallation/reinstallation. The apxs expects some LoadModule directives
to be already present in httpd.conf (they may be commented-out) in order
to decide where to put its own directives.

This PR puts fake LoadModule directive (commented out) to httpd.conf.
The $apxs_workaround boolean parameter in apache class decides, whether
to use this workaround or not. This is used on FreeBSD, where apxs is
used by ports package provider (and perhaps all other). Without this,
the apache installation/reinstallation/deinstallation as well as
installation of additional modules would fail.

This PR was created in order to split #342 into smaller parts to make
review process easier, see
https://github.com/puppetlabs/puppetlabs-apache/pull/342#issuecomment-25423813

Remove AllowOverride header for non-directories

When adding a dir with a different provider than directory (e.g. files,
or location), the AllowOverride header still added. This causes a
warning in apache.

Add unit tests

Fixed a typo. The directory provider should be lower case to match the manifests.

allow to choose the mpm_event mod from the init.pp

added a mod/event.pp manifest and edited the spec test
of the prefork/worker/event modules.

Add initial support for nss module (no directives in vhost template yet)

added $server_root parameter

Previously, the $httpd_dir was used as ServerRoot in httpd.conf
template. On some installations httpd_dir is not same as ServerRoot,
for example on FreeBSD apache22 (installed via ports) has ServerRoot set
to /usr/local by default.

This PR adds $server_root parameter to apache::params. Its purpose is to
be substituted in httpd.conf as ServerRoot. This parameter is used
in #342. The purpose of the whole thing is to plit #342 into smaller
parts to make review process easier, see
https://github.com/puppetlabs/puppetlabs-apache/pull/342#issuecomment-25423813

Allow apache::mod to specify module id and path

Add $id, $path and $lib_path parameters to apache::mod. These parameters
are used in #342. The purpose of the whole thing is to plit #342 into
smaller parts to make review process easier, see
https://github.com/puppetlabs/puppetlabs-apache/pull/342#issuecomment-25423813

This PR covers all changes introduced by #271 to manifests/mod.pp. I
just don't have test/mod_load_params.pp as in #271.

Add new params to apache::mod::mime class

This changeset adds $mime_support_package and $mime_types_config
parameters to class `apache::mod::mime`. Their purpose is following:

- $mime_support_package - install this package, as it provides mime.conf
  file (definition of mime types used by mod_mime),
- $mime_types_config - used to substitute TypesConfig in
  mod/mime.conf.erb template.

This PR was created in order to plit #342 into smaller
parts to make review process easier, see
https://github.com/puppetlabs/puppetlabs-apache/pull/342#issuecomment-25423813

Include mime if ssl is in use.

Without the default_mods we still try to setup an SSL vhost that fails
because AddType is used in the template.  Rather than trying to make
AddType conditional on the inclusion of the class we just require mime
as a standard mod no matter what you say.

Wrap the event test in a check for FreeBSD.

It seems this only works on FreeBSD currently.  In the future
we'll rework testing to test for 2.2 vs 2.4 or something.

Setting up the ability to do multiple rewrites and conditions. Allowing grouping and commenting

Changing the syntax of the directives. Now the rewrite directive is more intuitive and is consistent with other directives (i.e: aliases)

filling out the documentation a little more thoroughly

filling out the documentation a little more thoroughly

adding validation to the rewrites param

adding better tests for the new rewrite settings

make sure at least the first rewrite is a valid hash

adding warnings for depricated parameters

fixing spelling mistake

setting up real tests of rewrites

Setting up the ability to do multiple rewrites and conditions. Allowing grouping and commenting

Changing the syntax of the directives. Now the rewrite directive is more intuitive and is consistent with other directives (i.e: aliases)

filling out the documentation a little more thoroughly

filling out the documentation a little more thoroughly

adding validation to the rewrites param

adding better tests for the new rewrite settings

make sure at least the first rewrite is a valid hash

adding warnings for depricated parameters

fixing spelling mistake

setting up real tests of rewrites

fixing a misstype

renaming the rewrite_conds and rewrite_rules parameters to be singular to maintain consistency with previous standard
Merge branch 'master' of github.com:amvapor/puppetlabs-apache