nimco Posted December 6, 2006 Share Posted December 6, 2006 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 Quote Link to comment Share on other sites More sharing options...
steviewdr Posted December 6, 2006 Share Posted December 6, 2006 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.loadproxy_html.loadproxy.loadrewrite.loadIf 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.