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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.