如何解决 apache proxy: undefined symbol: ap_proxy_location_reverse_map

需要用 Apache配置反向打理,启用了 proxy 模块,但是启动 apache 却报错了
> # apache2 > apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: > Syntax error on line 2 of > /etc/apache2/mods-enabled/proxy_http.load: Cannot load > /usr/lib/apache2/modules/mod_proxy_http.so into server: > /usr/lib/apache2/modules/mod_proxy_http.so: undefined symbol: > ap_proxy_location_reverse_map

这个一般是 proxy_http和proxy模块的顺序反了造成的,通过调整顺序来解决,先家在 mod_proxy.so 再加载 mod_proxy_http.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

重启 Apache

Post a Comment

Your email is never shared. Required fields are marked *

*
*