linux - httpd-2.4.10 从 "Regex could not be compiled"开始失败

标签 linux apache

我已经在 RHEL5 上使用(安装了 pcre)构建了 apache httpd-2.4.10

"--with-included-apr" \
"--prefix=/opt/isv/apache/httpd-2.4.10" \
"--enable-authnz-ldap" \
"--enable-ldap" \
"--enable-ssl" \
"--with-ldap" \
"--with-pcre" \
"--enable-pcre" \
exit 0

当我尝试开始时

./apachectl -D LCP_QA  -f /opt/isv/apache/httpd-2.4.10/conf/cg_test_httpd.conf

错误是

AH00526: Syntax error on line 227 of /opt/isv/apache/httpd-2.4.10/conf/cg_test_httpd.conf:
Regex could not be compiled

抛出错误的行是

<Files ~ "^\.ht">
    Order Allow,Deny
    Deny from all
</Files>

这个相同的 conf 文件适用于 2.4.3 版本。

最佳答案

刚找到解决方案。我必须重新指定下载的 pcre 的路径 --with-pcre=/opt/isv/src/SOURCES/httpd-2.4.10/srclib/pcre/pcre-config

关于linux - httpd-2.4.10 从 "Regex could not be compiled"开始失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27828899/

相关文章:

c - 函数 ‘mknod’ 的隐式声明,但我包含了 header

php - 升级 macOs Sierra 后 apache 不工作

PHP 函数执行时间较长

c - 将整数传递给子进程

c - 如何使用 opencv 映射相机图像来创建现场 Playground 镜子?

linux - 为什么我的 iptables 条目不阻止对 Xen 虚拟机执行 ping 操作?

java - 在 Mac 上用 Eclipse 运行 tomcat

apache - Spring-security、Tomcat 和 SPNEGO - 最佳方法

apache - 使用 Apache 关闭特定文件的缓存

linux - 奇怪的返回值 "134"在 Bash 脚本中调用 Gawk