apache没有启动未定义的符号:proxy_hook_canon_handler

时间:2017-07-03 06:53:44

标签: apache undefined symbols

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

  

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

操作系统: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.conf

 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 个答案:

答案 0 :(得分:0)

proxy_connectproxy_html模块依赖于基础proxy模块,因此请确保已加载。您提到的配置文件列表中没有proxy.load文件,这可能是问题所在。