Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

how to start a custom application at the default port


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=""
                  debug="1" reloadable="true" /> and changed the web.xml under webapps/myapp/WEB-INF to the following.

Could someone please help.

thx in advance

1 Solution
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?
schillara_2000Author Commented:

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
PAQed with points refunded (500)

Community Support Moderator

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now