Unexpect error_document behaviour in puppetlabs/apache

55 views
Skip to first unread message

Jonathan Gazeley

unread,
Jan 29, 2015, 6:49:15 AM1/29/15
to puppet...@googlegroups.com
Hi folks,

I'm hitting an unexpected problem with puppetlabs/apache.

I have an apache::vhost declaration which includes the following block:

error_documents => [
{
'error_code' => '404',
'document' => '/error_docs/404.html'
},
{
'error_code' => '403',
'document' => '/error_docs/403.html'
},


However it produces this output, which causes apache to fail to start:

ErrorDocument 404 /error_docs/404.html
ErrorDocument 403 /error_docs/403.html
ErrorDocument
ErrorDocument
ErrorDocument
ErrorDocument

Any hints?

Thanks,
Jonathan

Jonathan Gazeley

unread,
Jan 29, 2015, 6:53:57 AM1/29/15
to puppet...@googlegroups.com
Fixed my own problem. The closing square bracket was a few lines too low
and some other hash elements were being accidentally included and passed
to error_documents. Sorry for the noise!
Reply all
Reply to author
Forward
0 new messages