Apache - Weblogic bridge - tricky question...
We have WLS 5.1 sp4 on Redhat 6.1 and Apache 1.3.12 on the same box.
I also have Mass virtual hosting setup under Apache. Before, the Apache-WLS
bridge was available, I used RewriteRule to proxy the requests:
Apache:
<VirtualHost 10.10.10.1:80>
ServerName test.com
ServerAlias *.test123.com www.test.com
VirtualDocumentRoot /www/vhosts/%1.1/%1.2/%1
DirectoryIndex index.html index.jsp
<Files *.jsp*>
RewriteEngine On
RewriteRule ^/(.*)$ http://www.test.com:7001/$1 [P]
</Files>
</VirtualHost>
WLS:
weblogic.properties: weblogic.httpd.documentRoot=public_html/
I also had a link in the public_html directory called www->/www
So, when a person connect to http://test1.test.com/shoppingcart.jsp, they
are forwarded to WLS with the path
/public_html/www/vhosts/test1/shoppingcart.jsp.
However, if I want to use the Apache-WLS bridge:
<VirtualHost 10.10.10.1:80>
ServerName test.com
ServerAlias *.test.com www.test.com
VirtualDocumentRoot /www/vhosts/%1
DirectoryIndex index.html index.jsp
<Files *.jsp*>
WeblogicHost localhost
WebLogicPort 7001
</Files>
</VirtualHost>
If a person connects to http://test1.test.com/shoppingcart.jsp, the path
forwarded to WLS is /shoppingcart.jsp and it looks for the file in the
public_html directory and it fails.
I cannot use the "PathPrepend" directive as the path varies with the URL.
Any ideas????
Thanks...
Hemanth
You need mod_rewrite which is enabled for Apache on redhat by default.
hemanth
"Klaus Oberecker" <[email protected]> wrote in message
news:[email protected]..
hi!
.. I have juste a short question concerning the Apache-Rewriting: do you
need a special module for that?!? - if so: which one???
thanks,
klaus
Hemanth wrote:
We have WLS 5.1 sp4 on Redhat 6.1 and Apache 1.3.12 on the same box.
I also have Mass virtual hosting setup under Apache. Before, the
Apache-WLS
bridge was available, I used RewriteRule to proxy the requests:
Apache:
<VirtualHost 10.10.10.1:80>
ServerName test.com
ServerAlias *.test123.com www.test.com
VirtualDocumentRoot /www/vhosts/%1.1/%1.2/%1
DirectoryIndex index.html index.jsp
<Files *.jsp*>
RewriteEngine On
RewriteRule ^/(.*)$ http://www.test.com:7001/$1 [P]
</Files>
</VirtualHost>
WLS:
weblogic.properties: weblogic.httpd.documentRoot=public_html/
I also had a link in the public_html directory called www->/www
So, when a person connect to http://test1.test.com/shoppingcart.jsp,
they
are forwarded to WLS with the path
/public_html/www/vhosts/test1/shoppingcart.jsp.
However, if I want to use the Apache-WLS bridge:
<VirtualHost 10.10.10.1:80>
ServerName test.com
ServerAlias *.test.com www.test.com
VirtualDocumentRoot /www/vhosts/%1
DirectoryIndex index.html index.jsp
<Files *.jsp*>
WeblogicHost localhost
WebLogicPort 7001
</Files>
</VirtualHost>
If a person connects to http://test1.test.com/shoppingcart.jsp, the path
forwarded to WLS is /shoppingcart.jsp and it looks for the file in the
public_html directory and it fails.
I cannot use the "PathPrepend" directive as the path varies with theURL.
>>
Any ideas????
Thanks...
Hemanth
Similar Messages
-
Overrding default Apache-Weblogic bridge error message
We are running WLS 5.1 sp5 with Apache as Webserver. I want to know how
could I display more user freindly error messages when
weblogic is down and apache is working. Currently we get the default
Weblogic-Apache down page.
I tried putting
ErrorPage http://www.mydomain.com/error.html
in apache conf file. Now I do not get the default message, but now it can
not find the above url.
I am able to this url directly in the browser. Please help ?[email protected] (srinivasa reddy) wrote in
<39bb039e$[email protected]>:
>
hi,
I have a basic question, does webloigc support apache-weblogic
bridge with mod_ssl/any ssl installed on apache.
thanks & regards
[email protected]
There is a mod_wl_ssl.so in sp4 (i believe). mod_ssl extends Apaches API
and thereby breaks the WebLogic bridge. For raven installations you need
mod_wl_ssl_rave.so because raven extends the API even further.
Joel
E-Mail: (jbf (at) proceedo dot com) -
RMI Through Apache-Weblogic Bridge
Hi,
How to use RMI in apache-weblogic bridge
Thanks,
Siva E.[email protected] (srinivasa reddy) wrote in
<39bb039e$[email protected]>:
>
hi,
I have a basic question, does webloigc support apache-weblogic
bridge with mod_ssl/any ssl installed on apache.
thanks & regards
[email protected]
There is a mod_wl_ssl.so in sp4 (i believe). mod_ssl extends Apaches API
and thereby breaks the WebLogic bridge. For raven installations you need
mod_wl_ssl_rave.so because raven extends the API even further.
Joel
E-Mail: (jbf (at) proceedo dot com) -
Apache-Weblogic Bridge does not work?
I've gone thru' the documentation regarding setting up of apache-weblogic bridge, but still it does not work. Does anyboday have any more details regarding this...EnvironmentOS - Solars 5.7Weblogic - 5.1 SP 8Apache 1.3.12
I've given up and had to go back to running "Double NAT" which also reports as a "problem" within the AEBS, but I just "ignore" it so the light will always be green.
It still ***** though, as "Double NAT" is also a reason for "Back to my Mac" not working properly, but how the ** am I supposed to avoid Double NAT when the wireless will not work in bridged mode?! -
Aborting uploads through Apache/Weblogic bridge
Hi,
I have an application to which people should be able to upload files,
however only of a certain size. So if I detect that the file is too
large (based on Content-Length), I return an errorpage and don't read
the data from the browser. This is allowed according to rfc 1867 (which,
though it is obsoleted, is the one the HTTP1.1 rfc refers to on the
matter - also the obsoleting rfc doesn't say anything on the matter) and
all browsers seems to handle this.
However, once I go through the Apache/Weblogic bridge the behaviour
changes. When the browser sends the POST request to the bridge, the
bridge relays it on to the Weblogic server and my code. I immediately
determine that the file is too large, and returns the previously
mentioned errorpage. But, the bridge doesn't stop recieving the file
from the browser until it has got the entire file and then it returns a
standard bridge POST timeout error (and the timeout has definately not
been reached).
Any ideas?
CAPUT A/S Morten Jensen Phone +45 70 12 24 42
Nygade 6 Senior Developer Fax +45 70 11 24 42
DK-1164 Kbh K [email protected] http://www.caput.comAdd the following attributes:
<Location /re >
WLProxySSL ON
EnforceBasicConstraints false
</Location>
Original example in [http://m-button.blogspot.com/2008/11/how-to-configure-weblogic-to-use-ssl.html]
I hope this helps. -
Apache-weblogic bridge problems with virtual hosting
Hi,
Can we set apache-weblogic bridge where apache webserver is configured
as virtual hosts and each Virtual Host is mapped to a WebLogic server
instance running on separate port ?
Please provide doc or reference or your comments if you have solved this
problem
Thanks
ShriniwasThe above comments notwithstanding, there's one outstanding line in your post that seems crucial:
Also if I type on my browser the name of another secondary (or virtual) domain name in the form http://domain2.com it brings the website hosted under the primary domain which is domain1.com. In case I type http://www.domain2.com than it works as it should and displays the website hosted under this domain name.
As far as Apache is concerned, 'domain2.com' and 'www.domain2.com' are completely separate entities. They have to be otherwise if all domain2.com traffic went to this site you'd never be able to host different sites within the domain (e.g. blogs.domain2.com, wiki.domain2.com, blah.domain2.com, etc.). In other words, there is no automatic relationship between a hostname and sub-records of that hostname.
So what's happening here is Apache is seeing a request for 'domain2.com' which does not match any of its configured virtual hosts, so it handles the request via the default site. If you request www.domain2.com this matches your virtual host configuration so Apache serves the alternate content.
The fix is simple - trivial, even - you just need to tell Apache all the hostnames that match this site - in this case if you've configured the site's primary address as 'www.domain2.com' and you want it to also respond to requests to 'domain2.com' then add 'domain2.com' to the list of Server Aliases in Server Admin. -
Overriding default errror page for Apache-Weblogic bridge
I am writing this problem again as nobody has replied me with any solution.
I want to overide the default error page that comes up when weblogic is down
for some reason in apache-weblogic bridge. I looked into the weblogic
documentation and specfied the following in the apache configuration file
ErrorPage http://www.domain.com/systemerror.html
But for some reason it is not able to locate the domain as well as the page.
But if try the same url in the browser, it works. Please help.
RakeshI am using the plugin and using the error page successfully. Apache and WL
use the same document root, and the error page is located within the
document root:
Within the httpd.conf, I have:
<IfModule mod_weblogic.c>
# Config file for WebLogic which defines parameters for plugin
Include conf/weblogic.conf
</IfModule>
Within the weblogic.conf, I have:
ErrorPage unavailable.html
Provide your configuration settings.
"Rakesh Gupta" <[email protected]> wrote in message
news:39d3bcd3$[email protected]..
Well, we are using weblogic supplied apache plugin and I am following all
the steps that is specified in setting up apache plugins in weblogic
documentation. I do not think it is apache network problem as apache is
working fine.
The think the problem is somewhere in the weblogic-apache plugin module.
"Jesse E Tilly" <[email protected]> wrote in message
news:[email protected]..
[email protected] (Rakesh Gupta) wrote in <[email protected]>:
I am writing this problem again as nobody has replied me with any
solution.
I want to overide the default error page that comes up when weblogic is
down for some reason in apache-weblogic bridge. I looked into the
weblogic documentation and specfied the following in the apache
configuration file
ErrorPage http://www.domain.com/systemerror.html
But for some reason it is not able to locate the domain as well as the
page. But if try the same url in the browser, it works. Please help.
Rakesh
as worded, that sounds like a network setup problem on the apache server
side.
however, it seems that you want a server-connection-timeout error toreturn
an specific error page via the plug-in. This all depends on how theplugin
works. If it is how I think it works, there needs to be an INI
setting
to sepcify a page. Why? Because the plug-in effectively has control of
the response. It either needs a way hand control back to the web serveror
needs to have error pages of its own.
BEA?
Jesse -
Apache-WebLogic bridge for Solaris 8
Is there an Apache bridge for Solaris 8 running on an x86 platofrm yet? Obviously, the one for SPARC systems doesn't work...
After looking everywhere for the reason why it wasn't working, I found this forum.
I built my own and it worked like a charm!!
Thanks!
Shawn.
"Eric Gross" <[email protected]> wrote:
Yes.. I've seen this.
Unfortunately, we do not ship separate modules. It is unfortunate that
Redhat has chosen 2.0.40 as their base version and to backport fixes
into
that base version. The reason this is unfortunate is that the rest of
the
world is using at least 2.0.42.
Is there any chance you can build your own version ?
Thanks,
Eric
"Victoria A Smith" <[email protected]> wrote in message
news:3f296a76$[email protected]..
The problem with that is that the vendor supported,
secure version of Apache (for RedHat) is 2.0.40.
To understand why this is important, read this
short article:
http://www.redhat.com/advice/speaks_backport.html
Victoria
"Eric Gross" <[email protected]> wrote:
Yes, you need to be using at least Apache 2.0.42.
Eric
"Rahul Phadnis" <[email protected]> wrote in message
news:3f1c895d$[email protected]..
I am trying to configure the plugin to work for apache 2.0.40. Theapache
server
has been installed on RedHat linux 7.3..
i copied the mod_wl_20.so from linux/i686/ directory of weblogicinstallation.[...] -
About Apache-Weblogic Bridge configuration
hi,
Can Apache support two weblogic server, and how can to config if possible.
I look forward to your reply
Regardsreally?
I've read that document. it says only support one.
And at last I start two Apache to solve this problem. it runs well.
Thank you
Regards
Michael Girdley <[email protected]> wrote in message
news:8i98ml$ian$[email protected]..
>
>
Yes, it can. I suggest taking a look at our documentation -- configuring
the Apache plug-in.
Thanks,
Michael
Michael Girdley
Product Manager, WebLogic Server & Express
BEA Systems Inc
fxy <[email protected]> wrote in message
news:8hn23b$rvg$[email protected]..
hi,
Can Apache support two weblogic server, and how can to config if
possible.
>>
I look forward to your reply
Regards -
Re: Overriding default errror page for Apache-Weblogic
I am writing this problem again as nobody has replied me with any solution.
I want to overide the default error page that comes up when weblogic is down
for some reason in apache-weblogic bridge. I looked into the weblogic
documentation and specfied the following in the apache configuration file
ErrorPage http://www.domain.com/systemerror.html
But for some reason it is not able to locate the domain as well as the page.
But if try the same url in the browser, it works. Please help.
RakeshI am using the plugin and using the error page successfully. Apache and WL
use the same document root, and the error page is located within the
document root:
Within the httpd.conf, I have:
<IfModule mod_weblogic.c>
# Config file for WebLogic which defines parameters for plugin
Include conf/weblogic.conf
</IfModule>
Within the weblogic.conf, I have:
ErrorPage unavailable.html
Provide your configuration settings.
"Rakesh Gupta" <[email protected]> wrote in message
news:39d3bcd3$[email protected]..
Well, we are using weblogic supplied apache plugin and I am following all
the steps that is specified in setting up apache plugins in weblogic
documentation. I do not think it is apache network problem as apache is
working fine.
The think the problem is somewhere in the weblogic-apache plugin module.
"Jesse E Tilly" <[email protected]> wrote in message
news:[email protected]..
[email protected] (Rakesh Gupta) wrote in <[email protected]>:
I am writing this problem again as nobody has replied me with any
solution.
I want to overide the default error page that comes up when weblogic is
down for some reason in apache-weblogic bridge. I looked into the
weblogic documentation and specfied the following in the apache
configuration file
ErrorPage http://www.domain.com/systemerror.html
But for some reason it is not able to locate the domain as well as the
page. But if try the same url in the browser, it works. Please help.
Rakesh
as worded, that sounds like a network setup problem on the apache server
side.
however, it seems that you want a server-connection-timeout error toreturn
an specific error page via the plug-in. This all depends on how theplugin
works. If it is how I think it works, there needs to be an INI
setting
to sepcify a page. Why? Because the plug-in effectively has control of
the response. It either needs a way hand control back to the web serveror
needs to have error pages of its own.
BEA?
Jesse -
Weblogic Bridge "failed and will reconnect later"
The enterprise architecture is as follows:
1 Physical machine where I have 2 VMs on this machine, and each VM I have 1 domain, 1 Cluster and 1 managed server, and the second VM I have the replicated what I have in first VM.
In first domain I have the OSB, in the second domain I have SOA.
What I need ? Send information of queues (topics) of First Domain (OSB) to second domain(SOA).
At first the only thing I did was:
In the first domain I created OSB JMS Server, JMS Module, Connection Factory and Queue Topic.
In the second domain SOA I replied the same thing but with different names.
Then I created the bridge with configuration default between the first domain and the second domain, the bridge and when active it generates me a message Weblogic Bridge "failed and will reconnect later"
I did a test on my local machine windows where I created two domains, and the same procedures you did above, but the point was funcinou been activated now for the enterprise environment I'm not managing to make it work, you could tell me what is wrong . in both cases restarted the weblogic server as the machine itself the question that ran on my machine and machine company no.
If you can give me a light thank.This is a bug (6973877, derby only) which has been fixed in 4.5 build14 and 4.4u2p1. Thanks for reporting. The problem is the missing "FOR BIT DATA" in LOG_RECORD column in derby table definition MQTMLRJMSBG41 in broker default.properties file
- LOG_RECORD VARCHAR(2048) NOT NULL,\
+ LOG_RECORD VARCHAR(2048) FOR BIT DATA NOT NULL,\ -
Apache-WebLogic Bridhge Failures
Hi all, We are also having a similar setup, except that we are using WebLogic Server 5.1. We had this problem when the traffic in our production site is high. We thought we had solved the problem when we applied Service Pack 5. But after behaving for sometime if the data upload goes beyond say 5 MB the Bridge fails, but surprisingly the actual data gets uploaded. This happens when the traffic is slightly high on the site. We have set the parameter ConnectionTimeoutSecs in weblogic.conf which is called by the httpd.conf to 900. Still we are having this bridge failure problem once in a while. We are not sure what to do, is there anybody who has faced this problem and managed to solve it ? if so please SOS.Cheers,Aejaz
We don't have apache plugin for Win NT.
check our platform support page.
Kumar
ASIF wrote:
where can i get apache-weblogic PLUGIN for
WINNT -
Multiple Apache-Weblogic plug-in configurations for the same host
Hi BEA,
I have a situation where I have more than one weblogic server/cluster both using
the same Apache to proxy. Reading the Apache plug-in configuration I gather that
below should work. In Apache (httpd.conf):
<Location /path1>
SetHandler weblogic-handler
WeblogicHost app1
WeblogicPort 7001
</Location>
<Location /path2>
SetHandler weblogic-handler
WeblogicHost app2
WeblogicPort 7001
</Location>
In this case the later Location of the two works fine and the other seems like
it is just not there. (If the two are switched the other works fine...) The thing
is that, if possible, I would like to avoid splitting the two locations onto two
different VirtualHosts (which works).
Does anyone have any ideas on how to solve this and still avoid the use of multiple
VirtualHost-definitions?
Is it due to a limitation in Apache module architecture that the configuration
above does not work or is it a design choice in the plug-in?
//GG
Gunnar,
I would post this Apache proxy plug in question to the
weblogic.developer.interest.plug-in forum
Chuck Nelson
DRE
BEA Technical Support
-
Apache 1.3.12 And Apach-weblogic plug-in
Hi,
I am trying to use the Apache-weblogic server plug-in
with Apache1.3.12.
I don't seem to be getting anywhere.
Has someone tried it?
I followed the apache-bridge.html instruction but
still couldn't get it to work.
If someone has already tried it and it works
can they share relevant parts of their httpd.conf.
ThanksCan you send us the lines you have added in the httpd.conf file. Also
please
go through the instructions once again and see what have you missed. It
is just a configuration problem.
--Vinod.
samir wrote:
Hi,
I am trying to use the Apache-weblogic server plug-in
with Apache1.3.12.
I don't seem to be getting anywhere.
Has someone tried it?
I followed the apache-bridge.html instruction but
still couldn't get it to work.
If someone has already tried it and it works
can they share relevant parts of their httpd.conf.
Thanks -
Hi--
I am using the Apache-Weblogic(WLS 5.1) bridge on Solaris platform and for
some reason, I am having problems getting cookies to work.
The cookie doesn't even get set. But, interestingly the cookie gets written
if I use the Weblogic's web server
ie: http://mydomain.com:7001/jsp ....
<%@ page import="java.util.*" %>
<%
String redirect="";
redirect="test2.jsp";
boolean hasCookie = false;
String cookieName = "xxx";
String cookieVal = "testValue";
Cookie testCookie = null;
Cookie[] cookies = request.getCookies();
if (cookies != null){
for(int i=0; i < cookies.length ; i++){
testCookie = cookies;
if(testCookie.getName().equals(cookieName)){
hasCookie = true;
break;
if(!hasCookie){
testCookie = new Cookie(cookieName, cookieVal);
testCookie.setMaxAge(60*60);
response.addCookie(testCookie);
System.out.println("Added cookie");
response.sendRedirect(response.encodeRedirectURL(redirect));
} else {
System.out.println("Has cookie");
response.sendRedirect(response.encodeRedirectURL(redirect));
%>
I would greatly appreciate any help.
Thanks.
Senthil.Which service pack are you using? There was a bug in 510 which was causing only
one
cookie to be set. This was fixed in SP3 (ISSUE 10680: If setting multiple
cookies, only
the first one gets set). So the first one may happen to be the WebLogicSession
cookie.
So if this is the case please upgrade to SP3. SP4 will be out any time from
now.
--Vinod.
Senthil Venkat wrote:
> Hi--
>
> I am using the Apache-Weblogic(WLS 5.1) bridge on Solaris platform and for
> some reason, I am having problems getting cookies to work.
>
> The cookie doesn't even get set. But, interestingly the cookie gets written
> if I use the Weblogic's web server
> ie: http://mydomain.com:7001/jsp ....
>
> <%@ page import="java.util.*" %>
> <%
> String redirect="";
>
> redirect="test2.jsp";
>
> boolean hasCookie = false;
> String cookieName = "xxx";
> String cookieVal = "testValue";
> Cookie testCookie = null;
>
> Cookie[] cookies = request.getCookies();
>
> if (cookies != null){
> for(int i=0; i < cookies.length ; i++){
> testCookie = cookies;
> if(testCookie.getName().equals(cookieName)){
> hasCookie = true;
> break;
> }
> }
> }
>
> if(!hasCookie){
> testCookie = new Cookie(cookieName, cookieVal);
> testCookie.setMaxAge(60*60);
> response.addCookie(testCookie);
> System.out.println("Added cookie");
> response.sendRedirect(response.encodeRedirectURL(redirect));
> } else {
> System.out.println("Has cookie");
> response.sendRedirect(response.encodeRedirectURL(redirect));
> }
> %>
>
> I would greatly appreciate any help.
>
> Thanks.
>
> Senthil.
Maybe you are looking for
-
Hi, I ahve a macbook Pro. Sometimes it tells me there are software updates but some of them i can't download because it wants me to enter an apple ID and its only giving me the choice to use my old ID with an old email address that no longer exists.
-
What are customizing steps to create pro forma invoice from STO delivery?
I have copied FUPI output for pro forma invoice billing type F8. I tested and was able to successfully get it to work for a regular delivery that was created from a standard sales order. However, I need this to also work for a stock transport order
-
Problem when downloading FaceTime from Appstore in Mac
I get this message everytime i try to download it: "FaceTime can't be installed on "Macintosh HD" because the version of Mac OS X is too new."
-
Re: cartridge recognition
Have iMac with Yosemite 10.10.2 OS(X) and HP psc 2210 all-in-one printer. Getting error message: Right cartridge incorrect. This printer uses cartridges 58 (color) and 56(black). 56 is loaded in the right-hand slot. I ran the utitlity test and t
-
Need Screen Exit in "Create Trip" Screen of Tcode TRIP.
Hi, Here i want to develop a screen in "CreateTrip" of TCode TRIP. Any suggestions are welcome. Thanks in Adv, Raju Mummidi