Rewrite Location-headers in frontend by weblogic plugin
Hi!
I've got a problem where I've got a Apache 2.2.9 acting as a proxy for a application running on BEA Weblogic.
I'm using the plugin from BEA Weblogic as the proxy.
Everything works fine except when the weblogicserver makes a redirect, i.e. sends a Location-header. The Location header looks like "Location: http://weblogic.internal.net/Client".
The servername should be rewritten to the public nam "proxy.example.com".
### START ### Weblogic configuration in apache.conf:
LoadModule weblogic_module /usr/lib/apache2/modules/mod_wl_22.so
<IfModule mod_weblogic.c>
WebLogicHost weblogic.internal.net
WebLogicPort 8202
WLProxySSL on
DebugConfigInfo on
Debug ALL
</IfModule>
<Location /Application/>
SetHandler weblogic-handler
</Location>
### END ### Weblogic configuration in apache.conf:
Any ideas on how to manage the rewrite of the Location-header?
Can weblogic plugin and mod_proxy/mod_rewrite be comined?
Is there any other configuration parameters for weblogic to state the frontend machine?
/Andreas
Hi!
I've got a problem where I've got a Apache 2.2.9 acting as a proxy for a application running on BEA Weblogic.
I'm using the plugin from BEA Weblogic as the proxy.
Everything works fine except when the weblogicserver makes a redirect, i.e. sends a Location-header. The Location header looks like "Location: http://weblogic.internal.net/Client".
The servername should be rewritten to the public nam "proxy.example.com".
### START ### Weblogic configuration in apache.conf:
LoadModule weblogic_module /usr/lib/apache2/modules/mod_wl_22.so
<IfModule mod_weblogic.c>
WebLogicHost weblogic.internal.net
WebLogicPort 8202
WLProxySSL on
DebugConfigInfo on
Debug ALL
</IfModule>
<Location /Application/>
SetHandler weblogic-handler
</Location>
### END ### Weblogic configuration in apache.conf:
Any ideas on how to manage the rewrite of the Location-header?
Can weblogic plugin and mod_proxy/mod_rewrite be comined?
Is there any other configuration parameters for weblogic to state the frontend machine?
/Andreas
Similar Messages
-
Apach 2.2.21 using Weblogic Plugin (10.3.5)
Hi All,
I have configure apache using Weblogic Plugin and it work for http. So moving forward, i am trying to configure a 2 way SSL with weblogic plugin and have configure all the oracle wallet.
I got my plugin from my weblogic server /opt/bea/wlserver_10.3/server/plugin/solaris/sparc/. The version of my weblogic is 10.3.5.
When i do a apachectl -t to check the syntax and i got the following errors:
# /usr/local/apache2/bin/apachectl -t
Syntax error on line 475 of /usr/local/apache2/conf/httpd.conf:
Invalid command 'WLSSLWallet', perhaps misspelled or defined by a module not included in the server configuration
Below is the configuration files on my httpd.conf
<IfModule mod_weblogic.c>
WebLogicCluster server1:4567,server2:4567,server1:1234,server2:1234
SecureProxy ON
WLSSLWallet /opt/certificate/oracle_wallet
</IfModule>
<Location /something>
SetHandler weblogic-handler
PathTrim /
Debug ON
WLLogFile /tmp/web_log.log
</Location>
My oracle wallet is as follows:
# ./orapki wallet display -wallet /opt/certificate/oracle_wallet/
Oracle PKI Tool : Version 11.1.1.4.0
Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
Requested Certificates:
Subject: CN=somehost,DC=example,DC=com
User Certificates:
Trusted Certificates:
Subject: CN=somehostCA,DC=example,DC=com
Subject: OU=Class 3 Public Primary Certification Authority,O=VeriSign\, Inc.,C=US
Subject: CN=GTE CyberTrust Global Root,OU=GTE CyberTrust Solutions\, Inc.,O=GTE Corporation,C=US
Subject: CN=somehost,DC=example,DC=come
Subject: OU=Class 2 Public Primary Certification Authority,O=VeriSign\, Inc.,C=US
Subject: OU=Class 1 Public Primary Certification Authority,O=VeriSign\, Inc.,C=US
Could this be a bug on the weblogic plugin ? Please advise.
Edited by: 885587 on Sep 15, 2011 9:53 PMMy apache is compile with the following flags, if that matters to anyone. Advance thanks to anyone who reply this thread =)
./configure prefix=/usr/local/apache2 enable-modules=all enable-mods-shared=all enable-ssl with-ssl enable-so --enable-rewrite -
Reverse Proxy Pbm Rewriting Location
Sun Java Web Proxy Server v4.0.7 is running on Windows 2003 Server.
The SJWP server is running as a reverse proxy for the following domains:
app.example1.com
appmgt.example1.com
I have configured the SJWP server to use Virtual Multihosting in Reverse Proxy:
app.example1.com --> app.example2.com
appmgt.example1.com --> appmgt.example2.com
The SJWP server routes all requests through another web proxy (squid), but this is acting a a forward proxy.
The SJWP server has a Content URL Rewriting filter (because all pages within example2.com use fixed path URLs, not relative ones):
Source Pattern: example2.com
Destination Pattern: example1.com
MIME Type: *
At one point, when trying to load a page from app.example1.com (app.example2.com) -- the page attempts to do a Location redirect from app.example1.com to app.example2.com, and this fails since the client does not know about example2.com.
The problem seems to be that the SJWP server is not rewriting the Location header.
What do I need to do to get the SJWP rewrite the Location header? Shouldn't the virtual multihosting config handle this?
Edited by: macdsg on Jul 31, 2008 10:41 AMNo, a virtual multihosting configuration does not do rewriting of "Location" headers.
-
Does anyone have any idea how to find out the version of weblogic plugin
Does anyone have any idea about how to find out the current version of weblogic plugin used to connect from webserver to weblogic server?
I could not find version in plugin directory.
it's the same one that came prepackaged with Weblogic 9.2. we haven't change it.
Sun One 6.1 SP6
Weblogic 9.2
Solaris 5.10
Edited by: 985608 on 01-feb-2013 8:20
Edited by: 985608 on 04-feb-2013 6:25
Edited by: 985608 on 04-feb-2013 6:27Hi,
You can find version of weblogic plugin using below command.
strings <plugin module file> | grep -i wlsplugins
Mark if this helps.
Regards,
Kishore -
IP address restrictions not working with bea weblogic plugin
We want to implement IP address restrictions via the Sun Java One Web Server admin tool for our application. We are using the Sun Java One Web Server to proxy requests via the Bea Weblogic plugin. However, we cannot get IP address restrictions to work because of the leading asterisk in the following NSAPI entry for PPATH of obj.conf :
<Object name="weblogic" ppath="*/cmcsr/*"> Service fn="wl_proxy" WebLogicCluster="10.156.20.11:9010,\
10.156.20.12:9010,10.156.20.13:9010" DynamicServerList="OFF"
</Object>
Has anyone gotten IP restrictions to work with the bea Weblogic NSAPI plugin?I'm not sure what you're asking, but each Service directive should be on its own line. It is an error to have both a <Client> tag and Service directive on a single line.
-
Weblogic plugin for Apache 2.2
Where should I download the weblogic plugin for Apache 2.2?
I'm running WL 10.3 on windows xp.
Please provide the link .
Thanks,
sriposHi
On this link, click Accept license and go all the way to bottom and click on All Versions link named next to "Oracle WebLogic Server Web Server Plugins 1.1"
http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
That click should open this below link. Accept the license and Download the zip file. Then follow the instructions.
http://www.oracle.com/technetwork/middleware/ias/downloads/wls-plugins-096117.html
Thanks
Ravi Jegga -
Looking for a non-Weblogic plugin
I would like to use the plugin to also proxy to a Windows 2K server running
IIS. I have used the Weblogic plugin for this function and have validated
that it works properly but have a preference of doing this in a vendor
supported fashion.
Does anyone know of either source code for plugins and/or a open-source
offering?I would like to use the plugin to also proxy to a Windows 2K server running
IIS. I have used the Weblogic plugin for this function and have validated
that it works properly but have a preference of doing this in a vendor
supported fashion.
Does anyone know of either source code for plugins and/or a open-source
offering? -
Installing weblogic plugin in apache running on RedHat Linux WS4
I want to install weblogic plugin in apache running on redhat Linux WS4. I have read the documentation. In my local weblogic,under this directory C:\bea81SP4\weblogic81\server\lib\linux
I see the following three folders
a) i686
b) ia64
c) s390.
I dont know which folder to choose. Please advise.Hi,
according to your processer you have to chose mod_ ..so file
if you got error with sp4 plug in file use the plug in file from the another version
plug in files are compatable
Regards,
Prasanna Yalam -
Is there windows NT version of WEBLOGIC Plugin? If so where can we get the details about the product?
A plugin for which product (i.e., IIS, NES/iPlanet, or Apache)? The answer is yes for IIS and
NES/iPlanaet but no for Apache.
Sairam Krishnaswamy wrote:
Is there windows NT version of WEBLOGIC Plugin? If so where can we get the details about the product? -
Hello :
How to configure the Apache - Weblogic Plugin in BEA 8.1. I am doing all
as per the doc but I am not able to get the result.
My configuration RH 7.3, BEA 8.1 , Apache 2.3.9
If somebody have configured could u guys give little insight..
regards
Boney JoseYou need to make sure you are using the latest plugin. Please download the
latest Service Pack and grab the mod_wl.so from there.
Regards,
Eric
"Mandar" <[email protected]> wrote in message
news:[email protected]..
>
Hi,
I am trying to plug-in Apache on one Solaris machine with Weblogic serverrunning
on separate Solaris machine.
I am using the Weblogic documentation '
http://www.weblogic.com/docs51/admindocs/apache_bridge.html
However it looks like the plug-in does not recognize some of theparameters like
DefaultFileName, MatchExpression etc.
Any hints?
How can we forward (tunnel) all jsp requests to weblogic server?
Where and how do we use MatchExpression *.jsp tag?
Thanks
Mandar -
Installing Apache-WebLogic plugin
I have followed the steps (1-6) mentioned at
http://www.weblogic.com/docs51/admindocs/apache_bridge.html
for installing the Apache-WebLogic plugin.
However, after doing it I could not start Apache. I get the following error.
Syntax error on line 235 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/mod_wl.so into server: ld.so.1:
/usr/apache/bin/httpd: fatal: /usr/apache/libexec/mod_wl.so: open failed: No
such file or directory
Line 235 consists of the following entry
LoadModule weblogic_module /usr/apache/libexec/mod_wl.so
I do have the file /usr/apache/libexec/mod_wl.so in my directory with the
same permissions
as other files in the same directory.
Any help is appreciated.
JRI found the problem. mod_wl.so is the SPARC version and I was trying to
run on Intel Solaris. Is there an Intel version of this file?
John Ruskin wrote in message <8i2uaj$21v$[email protected]>...
I have followed the steps (1-6) mentioned at
http://www.weblogic.com/docs51/admindocs/apache_bridge.html
for installing the Apache-WebLogic plugin.
However, after doing it I could not start Apache. I get the followingerror.
>
Syntax error on line 235 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/mod_wl.so into server: ld.so.1:
/usr/apache/bin/httpd: fatal: /usr/apache/libexec/mod_wl.so: open failed:No
such file or directory
Line 235 consists of the following entry
LoadModule weblogic_module /usr/apache/libexec/mod_wl.so
I do have the file /usr/apache/libexec/mod_wl.so in my directory with the
same permissions
as other files in the same directory.
Any help is appreciated.
JR -
Installing apache weblogic plugin in linux
want to install weblogic plugin in apache running on redhat Linux WS4. I have read the documentation. In my local weblogic,under this directory C:\bea81SP4\weblogic81\server\lib\linux
I see the following three folders
a) i686
b) ia64
c) s390.
I dont know which folder to choose. Please advise.Hi,
according to your processer you have to chose mod_ ..so file
if you got error with sp4 plug in file use the plug in file from the another version
plug in files are compatable
Regards,
Prasanna Yalam -
WebLogic Plugin 1.1.1 and eclipes
Hi
I want to run weblogic 8.1 and eclips together, and I using WebLogic Plugin 1.1.1 on read me file, I don't understand the fellowing[b]
Select the 'WebLogic->Classpath' node and set the following parameters
Classpath before the WebLogic libraries
Classpath after the WebLogic libraries
Select the 'WebLogic->Project' node and set the following parameter
Project added to the end of the classpath
Select the 'WebLogic->JavaVM Options' node and set the following parameters
JavaVM (JDK used to launch WebLogic Server)
JavaVM Options (arguments to pass the JavaVM)
JNI library path (paths to search when loading libraries
any ideal??
Thank you!I can confirm this too - Eclipse 3.0, WL 6.1, JDK 1.3.1 on Linux.
"Quinton" <[email protected]> wrote:
>
>
I am also getting the same problem. I am guessing this is due to the
Eclipse V3.
Anyone from BEA able to verify?
Thanks!
Aravind" <[email protected]> wrote:
Hello,
I have installed the plugin for Eclipse 3.0.0.
I get the following error when i try to set the Vm options at Eclipse
java.lang.NoClassDefFoundError: org/eclipse/debug/internal/ui/preferences/ComboFieldEditor
And i dont find this class at the library?
Is this plugin for the earlier release of Eclipse???
thanks
Aravind -
Weblogic plugin for eclipse not working...
Hi All:
I recently downloaded the weblogic plugin (1.1.1) for eclipse from here: http://dev2dev.bea.com/codelibrary/code/wlplugin.jsp.
I followed the installation steps as laid out in the readme file, but I am not
seeing the 'WebLogic' option in the 'Window' -> 'Customize Perspective...' ->
'Other' node.
I have tried with both eclipse 2.1.3 and 3.0.0 on windows 2k, with the same result.
I know I am missing something here 'coz reading posts from this group it appears
people are using it fairly successfully.
Any help will be greatly appreciated.
Best Regards
SanjeevTwo issues with the BEA Weblogic/Eclipse plugin:
1. The documentation hasn't been updated (readme.html). It still says 1.1.0 even though the current version is 1.1.1.
2. Assuming that the readme.html still applies to version 1.1.1, the language pack of the plugin is missing. The instructions say to copy the language pack (com.bea.eclipse.weblogic.nl1_1.1.0) to the Eclipse plugins directory. But this folder is not in the plugin zip file. Is this supposed to be downloaded separately?
In any case, the plugin isn't registering in Eclipse 2.1. I can only guess that it's because the language pack is missing. It looks like others are having problems as well.
Any word on this?
Thanks in advance,
--Neal -
Hi,
Configuration: Apache 2.0.63 as the front end to weblogic (9.1) application server. same thing observed in weblogic 9.2 as well.
Our client application sends the Cookies to the Apache:
Cookie: Server_session_id=XXXXXXXX
Cookie: JSESSIONID=LhTTZ2Cs1JSlRMPgGTx4BxmG67ML3ryv0PlPbYkhp4s72dpngsJl!-912570241
But Apache weblogic plugin when sends the request to weblogic:
Cookie: DAKServer_session_id=14612273741264701005679, JSESSIONID=LhTTZ2Cs1JSlRMPgGTx4BxmG67ML3ryv0PlPbYkhp4s72dpngsJl!-912570241
Note: comma is used as deliminator
HttpservletRequest consider only 1 cookie instead of 2.
I’m looking for resolution for this. Is there a way I can configure Apache plugin to send 2 cookies or configure it to send cookies with deliminator ‘;’
Please help.
Thanks..
UshaI asked the same question and was told that this is not possible. There is only one way that the plugin can balance requests and that is using the round robin approach. If you talk to support, ask them to submit a feature request. ...I was told that if enough people request more options for load balancing, they may build it into the plug-in.
-Brad
Maybe you are looking for
-
Multiple invoice line items posted as single line item in FI
Dear Gurus, My client has a specific requirement. We are required to maintain a rebate condition at item level. In the invoice the values of rebate conditons are appearing as per the line item. This rebate condition has been maintained as statistical
-
Accounting document type determination
How is the accounting document type 'RV' determined in an acounting document?
-
Unable to install 1.6.0_17 JRE in Linux FC12
Hi, I am having Linux FC(Fedora) 12 - 64 bit system. I am trying to install JRE 1.6.0_17, and get the following error when trying to install ( jre-6u17-linux-x64.bin). Do you agree to the above license terms? [yes or no] yes Unpacking... Checksumming
-
Mapviewer file not found...
I am getting this file error from logs.. :8905:0:1,0] [error] [client 10.159.247.138] File does not exist: /u01/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/htdocs/mapviewer/faces/home.jspx I see the EAR files there. Do I need to redeploy?
-
I work with english version of windows installed chinese font . JFileChooser can't show chinese correctly in the file view but buttons are labeled with english. When I call "Locale.setDefault(Locale.CHINA)" buttons are labeled with little square:( I