Link to home
Start Free TrialLog in
Avatar of schillara_2000
schillara_2000

asked on

how to start a custom application at the default port

Hi

I would like to start my application's default page as the default page for the tomcat instance. When i do http://localhost:8080, i would like to see my application's default page is myapp.html come up. I tried the following setting as suggested in an earlier thread. But it did n't seem to work.
      <Context path=""
                  docBase="myapp"
                  debug="1" reloadable="true" /> and changed the web.xml under webapps/myapp/WEB-INF to the following.
    <welcome-file-list>
        <welcome-file>myapp.html</welcome-file>
    </welcome-file-list>

Could someone please help.

thx in advance


Avatar of callrs
callrs

Edit your httpd.conf file (which is in the conf folder in your Apache Install). Add to the entries in the DirectoryIndex:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

---------
See: http://www.modwest.com/help/kb1-147.html     How can I show a default page other than index.html?
Avatar of schillara_2000

ASKER

friends

I was able to figure it out. thanks. I needed to create that file in the root directory of the app as it was really a dummy file in the servlet processing.

thanks all
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial