Using Mod Proxy with Weblogic

Using Mod Proxy with Weblogic

Post by caseymarti.. » Fri, 24 Mar 2000 04:00:00



Hello everyone!

I'm trying to set up Apache so I can forward my requests to a Weblogic
server but I can't seem to get the mod proxy to do its thing.  Does
anyone have any idea on how to configure Apache so I can pass it
along?  Is the module itself installed with the default install?

Thanks!
Casey

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Using Mod Proxy with Weblogic

Post by Sandeep Cariap » Sun, 26 Mar 2000 04:00:00


Hi Casey,

I think I might have gotten slightly further than you, but I got
stuck as well. Here is my situation:
I'm running WebLogic on port 7001. I can connect to it via
<http://hostname:7001>. I want to run apache, on the same machine in
front of WL, so that requests to port 7001 are passed on by apache to
WL.

I've compiled mod_proxy into apache. Some manuals recommend using
DSOs, but I prefer compiling it in for speed. The relevant lines in my
httpd.conf look like so:
ProxyRequests On
AllowCONNECT 443 7001
ProxyPass /foo <http://hostname:7001/index.html>
ProxyPassReverse /foo <http://hostname:7001/index.html>

So essentially what I want is that users who go to http://hostname/foo
see http://hostname:7001/index.html instead. Things do get redirected
as expected, however, when I run into a JSP page,apache goes nuts
because it cannot find a handler for.jsp in its mime-type file.

So now my problem has become the following:
How can I tell apache to pass everything that comes into /foo to
<http://hostname:7001>, and not worry about handlers it doesn't know
about?

BTW mod_proxy is documented at
http://www.apache.org/docs/mod/mod_proxy.html

If you like, the weblogic-to-apache bridge is documented at:
http://www.weblogic.com/docs50/admindocs/apache_bridge.html
According to WL support, even if you're running 4.5.1 you can use the
mod_wl.so module provided with WL 5.0, but it is not a recommended
configuration since it was not cleared by QA. Don't ask me what that
means..I probably won't stick it in production though..

Good luck. Let me know if you get anything to work. I'm also looking at
mod_rewrite to see if that would be useful here..

Regards,
Sandeep Cariapa



> Hello everyone!

> I'm trying to set up Apache so I can forward my requests to a Weblogic
> server but I can't seem to get the mod proxy to do its thing. Does
> anyone have any idea on how to configure Apache so I can pass it
> along? Is the module itself installed with the default install?

> Thanks!
> Casey

> Sent via Deja.com http://www.deja.com/
> Before you buy.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. Mod proxy or mod rewrite?

Hi,

I'm trying to get the following to work, and I'm not sure how to go
about it (or if it's possible).

I'm hosting a web site (www.otherdomain.com) which is not in my domain
(www.mydomain.com). The domain hosting company for "otherdomain.com" is
forwarding http://www.otherdomain.com to
http//www.mydomain.com/otherdomain/. When someone goes to the site, I'd
like them to *see* http://www.otherdomain.com (the original URL) rather
than http://www.mydomain.com/otherdomain/.

I've set up a virtual host in Apache for www.otherdomain.com and I have
a DNS zone set up for otherdomain.com on my machine. If I go to
http://www.otherdomain.com from my machine, I get the correct page and
the URL in my browser's location field is http://www.otherdomain.com,
which is what I want. However, I haven't been able to set things up so
that if I type http://www.mydomain.com/otherdomain/ I see
http://www.otherdomain.com.

I guess what I'm thinking is that when the original URL is forwarded to
my web server, Apache would forward or re-write that URL to the original
URL, which my machine's DNS would resolve locally and send back to
Apache which would handle it via the virtual host setup.

I've fooled around a little with mod_rewrite and mod_proxy but haven't
gotten it to work. Can anyone point me in the right direction?

Thanks,

-Steve
--
"If you watch TV news, you know less about the world than if you just
drank
gin straight from the bottle."  - Garrison Keillor

2. Attaching 6091-19 to a 7011-220

3. Setting status code in Http Response using ApacheWebServer and Weblogic

4. How I got metamail to compile on Linux

5. Using an outside proxy server form behind a proxy server

6. drastically low perform. - quad, 4G ram, 2.4.20

7. proxy mod FTP fix?

8. Burning on Solaris with cdrtools-2.01

9. WWW and PROXY auth when using Apache as authetifying reverse-proxy

10. mod rewrite or proxy..or both?

11. code alignment - mod 16 vs mod 4

12. Apache1.3.3 + Apache-SSL mod + fp-apache mod

13. ADSM NT using HP Surestore Optical 40st Mod.C1150A.?