Blog dedicated to Oracle Applications (E-Business Suite) Technology; covers Apps Architecture, Administration and third party bolt-ons to Apps

Tuesday, April 7, 2009

Redirect URL to login page in IBM Websphere

Jim asked me whether I knew anything about IBM Websphere. He had a problem where he wanted the application's login page to appear whenever the primary URL like http://websphere.justanexample.com is accessed. The login page was http://websphere.justanexample.com/BusinessApp/AppLogin.html

I worked with Sai to learn that IBM Websphere used IBM HTTPServer as the Web Server.
As per http://www-01.ibm.com/software/webservers/httpservers/:

IBM HTTP Server is based on the Apache HTTP Server (httpd.apache.org), developed by the Apache Software Foundation.

So it has the same files like httpd.conf like the Apache in 11i. If we changed the Document Root to point to the login folder, it was causing other issues like images were not being rendered as they referred to relative path.

So we did the next best thing. We created a new file index.html in the DocumentRoot directory which redirected to http://websphere.justanexample.com/BusinessApp/AppLogin.html

Here's the code:

No comments: