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

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

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


0
schillara_2000
Asked:
schillara_2000
1 Solution
 
callrsCommented:
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?
0
 
schillara_2000Author Commented:
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
0
 
GranModCommented:
PAQed with points refunded (500)

GranMod
Community Support Moderator
0

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