LayoutMergeEndTag sets the end tag used during a merge. By default this is </body>. This was added in 2.7.2.
<VirtualHost www.foo.com:80> LayoutMerge On LayoutMergeBeginTag LayoutMergeEndTag </VirtualHost>