puppetlabs/puppetlabs-apache — pull request #693 by blhughes (2014-04-03 20:48:43+00:00)
Title: Add rewrites to vhost directories

(#MODULES-111) Duplicate rewrites parameter from apache::vhost
as an array of hashes placed in the directories parameter
to enable use of mod_rewrite directives in vhost directories.

Add documentation to Parameter directories for apache::vhost for
rewrites array.

- - -

This doesn't achieve the fully desired goal of "support configuration via the other `templates/vhost/_*.erb` template fragments, ie `_rewrite.erb` and `_custom_fragment.erb` via the matching parameters for the fragment without code duplication." from MODULES-111 as it duplicated code.

However it achieves mod_rewrite functionality, and custom_fragment functionality in directories was added in a very similar manner.