Jump to content

apache configuration redirect problem with application server


nimco

Recommended Posts

hi
i have apache 2.2 with weblogic as application server .. i configure the apache to work with the weblogic according to weblogic document  .. all the request to "/weblogic" are redirect to port 7001 (to the weblogic) and according to the configuration in httpd.conf
all the *.jsp .. are also redirect to weblogic  ..
the problem is that a link from page in the application that is running on the weblogic (not a jsp file) is not redirect ..
the apache server is looking for the page in his document  root ..how can i tell the apache server to redirect all the relevant links to the weblogic
httpd.conf configuration relevant to weblogic:
LoadModule weblogic_module  modules\mod_wl_20.so

<IfModule mod_weblogic.c> 
WebLogicHost tlv-esx-0111
WebLogicPort 7001
MatchExpression *.jsp
MatchExpression *.do
MatchExpression *.css
Debug on
WLLogFile            c:/tmp/global_proxy.log 
WLTempDir            "c:/myTemp" 
DebugConfigInfo      On 
KeepAliveEnabled ON 
KeepAliveSecs  15
#Include conf/weblogic.conf
</IfModule>

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



nimco
So - you want apache2.2 on port 80, to serve out all your information and applications originating from your application server on port 7001??

If so - you will have to use a mod_proxy for apache. Apache has proxy modules which as part of a URL rewrite it can proxy connections to another application server on port 7001.
Specifically you will need these modules enabled:
proxy_connect.load
proxy_html.load
proxy.load
rewrite.load

If you have the above enabled in apache, this line in an apache vhost will work:
RewriteRule ^/(.*) http://server.com:7007/$1 [P]

note the [P] is for the proxy element of the URL rewrite.

-steve

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.