给定路径格式错误或包含无效字符:Apache错误

时间:2016-01-29 04:27:42

标签: regex apache ssi

我在windows环境下使用apache2.2。我有ssi包含的内容如:

<!--#include virtual="/content/app/en/jcr:content/test.html" -->

下面给出错误:

[Fri Jan 29 14:53:09 2016] [error] [client 127.0.0.1] (20024)The given path is misformatted or contained invalid characters: Cannot map GET /content/app/en/myPage.html HTTP/1.1 to file
[Fri Jan 29 14:53:09 2016] [error] [client 127.0.0.1] unable to include "/content/app/en/jcr:content/test.html" in parsed file 

我尝试使用/:,但没有效果。在浏览器上给出错误:[an error occurred while processing this directive]

1 个答案:

答案 0 :(得分:0)

Windows在其文件夹名称中不允许:,因此apache无法将其映射到磁盘上的文件。这不应该发生在Linux上。

如果可能,请在上述路径中使用_jcr_content代替jcr:content