Configure Apache Webserver with Weblogic Server

Step 1) Make sure the Apache server runs on port 8080.( This is because sometimes IIS, or some antivirus s/w runs on that port).This can be done by modifying the httpd.conf present at
D:\Program Files\Apache Group\Apache2\conf
Modify the Listen port to 8080

Listen 8080

Step 2) Copy the mod_wl_20.so from <bea_home>\wlserver_10.3\server\plugin\win\32 to
D:\Program Files\Apache Group\Apache2\modules

Step 3) Add these lines in the httpd.conf file

LoadModule weblogic_module modules/mod_wl_20.so

<Location />
SetHandler weblogic-handler
</Location>

<IfModule mod_weblogic.c>
WebLogicCluster localhost:7003,localhost:7005
Debug ON
WLLogFile c:/temp/wlproxy.log
WLTempDir c:/temp
</IfModule>

Step 4) Restart Apache and access the application deployed on the Cluster using

http://localhost:8080/YourApp

This will forward the request to the Weblogic Cluster

You can check the headers sent and received to WLS in wlproxy.log file.

Let me know if you face any issues.

37 comments

  1. Hi,
    Whether we should use only clustered IP:Port to WeblogicCluster parameter on Ifmodule ?
    is it not possible to use non clustered IP:Port to this parameter?

    thanks
    ARun

    1. Hi Arun,

      Its possible, u just have to specify WeblogicHost in place of WeblogiicCLuster.

      Try it out and let me know if you face any issues.

      Thanks,
      Faisal

  2. Hi,

    Do we need both IFModule and Location tags? Can’t we just use Location and define the Weblogic cluster name in it? How can you proxy by MIME types?

  3. In windows vista aprache proxy plugin is not working .
    Please suggest me is vista is not compatablie for proxying the requests WEBLOGIC AND APACHE.

    i am using the weblogic 9.2 and apache 2.2.x . Same was working fine in Windows XP

  4. We are upgrading our Apache 2.0.59 to 2.4.4 , will there be any impact on weblogic server 8.1? Please let me know.

  5. After i add this lines

    SetHandler weblogic-handler

    WebLogicCluster localhost:7003,localhost:7005
    Debug ON
    WLLogFile c:/temp/wlproxy.log
    WLTempDir c:/temp

    I get an error when i try to restart Apache Services

    1. Hey Anita,

      Go to Windows event manager and check the error message for apache application..
      Also check the error logs in the logs folder.. that will give u some hints…

      thanks,

  6. hi

    i have configured multiple urls which belongs to different web logic domains in http.conf file

    WebLogicCluster 10.225.244.79:9022,10.225.244.78:7001
    Debug ON
    WLLogFile /app2/apache/logs/wlproxy.log
    WLTempDir /app2/apache/logs

    but every time it is taking the first ip and port “10.225.244.79:9022” i observed this in log, not checking for 2nd url

    please let me know if i need configure any thing else,

    Thanks
    Mohammed Azas

    1. Hi Azas,

      How many requests are you sending at one time?
      Maybe you can test with Jmeter and send multiple requests at one time.

      Please let me know your test results.

      Regards,
      Faisal

  7. Hi,

    I have installed Apache2.4 verison for Weblogic 11g Server and copied mod_wl_20.so file from D:\Oracle\Middleware\wlserver_10.3\server\plugin\win\32 to D:\Oracle\Apache2.4\modules the added the below weblogic module like this in http.conf.
    # Weblogic Module
    LoadModule weblogic_module modules/mod_wl_20.so
    If i try to restart the http Server, getting sayying that “The request operaion has failed”.
    Could you please help me out here.

    1. Its present at this location

      C:\bea1032\wlserver_10.3\server\plugin

      You must choose to install plugins at the time of weblogic installation

  8. Is this possible to do for https? It seems that all the configuration has been tailored to http and not https. I am not able to get this to work the same way for htts in httpd-ssl.conf file. How can this be done for SSL so we can target https ports?

    1. You can refer to the configuration below…

      LoadModule weblogic_module modules/mod_wl128_22.so
      LoadModule ssl_module modules/mod_ssl.so


      SSLRandomSeed startup builtin
      SSLRandomSeed connect builtin

      Listen 8043
      SSLCipherSuite RSA:!EXP:+NULL:+HIGH:+MEDIUM:+LOW


      SSLEngine on
      SSLCertificateFile “D:\Apache2.2\bin\server.crt”
      SSLCertificateKeyFile “D:\Apache2.2\bin\server.key”

  9. Hi Admin, Can you please email me the mod_wl_20.so plugin on my email ..?
    Its not present under servers/plugin folder for Weblogic 12 c. Or may be, I would have missed something during installation? (Though no plugin options were populated whilst the installation).

Leave a Reply