httpd not started due to mod_proxy files not loaded

那年仲夏 提交于 2019-12-13 02:35:41

问题


I am trying to do jboss load balancing on centOS 7. I have installed httpd 2.4.7. Without any configuration changes it works, if I run

Service httpd start.

Whereas if I copy below files from http://mod-cluster.jboss.org/downloads/1-2-0-Final/
(mod_cluster-1.1.3.Final-linux2-x64-so)

 LoadModule proxy_module modules/mod_proxy.so
 LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
 LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
 LoadModule proxy_connect_module modules/mod_proxy_connect.so
 LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
 LoadModule proxy_http_module modules/mod_proxy_http.so
 LoadModule proxy_scgi_module modules/mod_proxy_scgi.so

into /etc/httpd/modules/ folder. Httpd give error /etc/httpd/modules/mod_proxy.so: cannot open shared object file: No such file or directory

I am following this a article http://blog.akquinet.de/2012/06/21/clustering-in-jboss-as7eap-6/

I am using httpd 2.4.6 and jbossAS7.1.1 on centos 7. I tried lots of articles for mod_cluster but none is seems to be working https://developer.jboss.org/thread/204011

https://gist.github.com/slok/1543449/4533338b25f952eb141fc71aab8ccc02c63d2439

please help me if someone know which mod_cluster binaries should be used for apache 2.4.6.


回答1:


For my apache2, the file is situated here:

/usr/lib/apache2/modules/mod_proxy.so

So, in my apache2.conf file, I just used the full path:

LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so




回答2:


Maybe your distribution of Apache does not put the modules/ dir under the serverroot. Check the 2nd parm of your working/existing LoadModules and adjust as needed.

Less likely: Your httpd is built w/o mod_proxy support.




回答3:


Mod_cluster 1.2.0.Final binary distribution only works with httpd 2.2.+, see MODCLUSTER-304

You should use the latest version 1.3.1


Edit:

The mod_proxy_balancer module is enabled, it is incompatible with mod_cluster.

Change:

LoadModule proxy_balancer_module modules/mod_proxy_balancer.so

To

#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so


来源:https://stackoverflow.com/questions/31786652/httpd-not-started-due-to-mod-proxy-files-not-loaded

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!