Dynamic welcome pages are not returning
 Technote (FAQ)
 
Problem
After configuring dynamic welcome pages for a Web application, they are not being returned by WebSphere® Application Server. This document outlines how to configure dynamic welcome pages within a Web application.
 
Cause
Configuring dynamic welcome pages within a Web application requires the use of the SimpleFileServlet or redirects from the Web server.
 
Solution
When you are defining a dynamic Welcome file within the Application Assembly Tool (AAT), you must also select the File serving enabled option from the IBM Extensions tab.

Consider the following example:

A Web application is defined with the context root of /myapp on localhost. The application has been defined with a Welcome file of default.jsp, but File serving enabled is set to false.

When a user makes a request for the following URL, it will not pass the plug-in:

http://www.hostname/myapp

In this scenario, using the internal transport will also fail:

http://www.hostname:9080/myapp

When the File serving enabled option is set to true, the request will be processed by WebSphere® Application Server and the Welcome file is served properly.

Another Workaround:
If you do not want to set the File serving enabled option to true, you can also consider the option, redirect the request from the Web server. In the case of IBM® HTTP Server, you can configure the httpd.conf file to redirect the request to a dynamic page. The following changes are required in the httpd.conf file:

DirectoryIndex index.html                        
Redirect /index.html http://www.hostname/default.jsp

The index.html file needs to exist in the context root of the Web server.

 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Servlet Engine/Web Container
Operating system(s): HP-UX
Software version: 4.0
Software edition:
Reference #: 1140601
IBM Group: Software Group
Modified date: Sep 14, 2004