Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have my url running on, i want to make a weblogic redirect when ever users type in the browser, it should place them to

what changes are required from the Weblogic side to make the redirect work?


share|improve this question

There are some things you can do on your web.xml, but I'm not sure if that kind of redirect must be done by Weblogic. Instead of that, you can use some other way to redirect: I've done something similar to what you need using nginx and haproxy.

Using nginx you can do something like

location / {
share|improve this answer

Weblogic comes with OHS (Oracle HTTP Server) which is basically Apache. Here's a blog post about using Apache with a weblogic cluster, but it does show you how to redirect to a single server too.

The relevant part is this (modified for your example):

<Location / >
   SetHandler weblogic-handler
   WebLogicPort 7002
   PathPrepend app1

The "Location /" tag tells your server that whenever the root context is accessed, the block should be invoked. mod_wl will then redirect you to the supplied host and port and the "PathPrepend" will add "app1" immediately following the port.

For more details, see the documentation.

share|improve this answer

you can use weblogic proxy class "weblogic.servlet.proxy.HttpProxyServlet". To set up a proxy you need create web.xml and weblogic.xml, and put them in WEB-INF directory as a proxy project. example for weblogic.xml

    <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 9.1//EN" "">
**example for web.xml** 

    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "";> 

     <!-- init-param>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.