为不同的子目录提供一组特定的错误页面

我目前正在尝试为网站中的单独文件夹设置两组不同的错误文档。

我有一个网站的根目录中的2个文件夹:

demo/
live/

任何在demo文件夹中返回404或403的请求都需要为Apache errordocument加载一组页面,例如。

ErrorDocument 404 /statuses/demo-404.html
ErrorDocument 403 /statuses/demo-403.html

而现场需要去类似的名字文件。

ErrorDocument 404 /statuses/live-404.html
ErrorDocument 403 /statuses/live-403.html

到目前为止,我已经尝试将.htaccess文件放置在这两个目录中,并将ErrorDocument指令设置指向特定的文件,404工作正常,并引用正确的页面。 但是,当尝试访问demo目录中的禁止文件夹时,403s不工作并且恢复到服务器默认值,日志显示如下:

[Wed Jun 16 04:47:44 2010] [crit] [client 115.64.131.144] (13)Permission denied: /home/abstract/public_html/demo/xxx/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

它是否正确? 将Apache恢复默认,因为它试图寻找一个文件夹中没有权限的htaccess? 为什么它不能通过文件夹树的方式? 我可以做到这一点吗?