提问者:小点点

Apache不启动未定义的符号:proxy_hook_canon_handler


Apache httpd未启动。这是我第一次尝试在这个特定的服务器上启动它。我得到以下错误。

Httpd: /etc/httpd/conf/httpd.conf第38行语法错误: /etc/httpd/conf.modules.d/proxy_connect.load第1行语法错误:无法将模块/mod_proxy_connect.so加载到服务器: /etc/httpd/modules/mod_proxy_connect.so:未定义符号:proxy_hook_canon_handler

OS: RHEL 7.3

httpd:2.4。6-40.el7_2.4。x86_64

apr-1.4.8-3.el7.x86_64

apr-util-1.5。2-6.el7。x86_64

httpd。形态

 Security
ServerTokens OS
ServerSignature On
TraceEnable On

ServerName "servername"
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
LimitRequestFieldSize 8190


User apache
Group apache

AccessFileName .htaccess
<FilesMatch "^\.ht">
    Require all denied
</FilesMatch>

<Directory />
  Options FollowSymLinks
  AllowOverride None
</Directory>


HostnameLookups Off
ErrorLog "/opt/www_logs/error_log"
LogLevel warn
EnableSendfile On

#Listen 80


Include "/etc/httpd/conf.modules.d/*.load"
Include "/etc/httpd/conf.modules.d/*.conf"
Include "/etc/httpd/conf/ports.conf"

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\"" forwarded

/etc/httpd/conf.modules.d

authz_core.load
authz_host.load
dir.load
filter.load
log_config.load
mime.conf
mime.load
prefork.conf
prefork.load
proxy_connect.load
proxy_html.load
rewrite.load
ssl.load
systemd.load
unixd.load
xml2enc.load

共1个答案

匿名用户

proxy\u connectproxy\u html模块依赖于基本proxy模块,因此请确保该模块也已加载。没有代理。在您提到的配置文件列表中加载文件,这可能就是问题所在。