Apache 2.4 with port redirect to Weblogic 12c

According Oracle guys, Apache 2.4 its is a vanila module to Weblogic 12c and same module runs with Weblogic 11g.

Modules are available to download:  https://blogs.oracle.com/WebLogicServer/entry/announcing_web_socket_proxy_and

# httpd -version
Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
Server built:   Mar 21 2016 02:33:00

On httpd.conf is necessary to load Apache 2.4 module

LoadModule weblogic_module modules/lib/mod_wl_24.so

My virtual host config:

ServerName grepora.com
RedirectMatch ^/$ https://grepora.com/members/maiquel-oliveira/
DirectoryIndex "index.html"
MatchExpression /maiquel-oliveira WebLogicCluster=weblogicmachine:8001

So after config and restart httpd, start get error on system messages caused by mod_wl_24.so:

# tail -f/var/log/messages
httpd: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_wl_24.so into server: libstdc++.so.5: cannot open shared object file: No such file or directory

# yum install -y libstdc++.so.5
# systemctl start httpd.service

# tail -f/var/log/messages
httpd: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_wl_24.so into server: libopmnsecure.so: cannot open shared object file: No such file or directory

Now magic solution to “libopmnsecure.so: cannot open shared object file”:

edit /etc/ld.so.conf

include ld.so.conf.d/*.conf
/etc/httpd/modules/lib/mod_wl_24.so
# ldconfig
# systemctl start httpd.service

# tail -f /var/log/messages
systemd: Started The Apache HTTP Server.

Maiquel.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.