how to start a custom application at the default port

Posted on 2006-05-21
Last Modified: 2010-03-04

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

Question by:schillara_2000
    LVL 31

    Expert Comment

    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:     How can I show a default page other than index.html?

    Author Comment


    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

    Accepted Solution

    PAQed with points refunded (500)

    Community Support Moderator

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Title # Comments Views Activity
    PHP 7 Warning 12 36
    htaccess question 5 55
    htaccess file 3 50
    How to access multiple local hosts from phone on network 5 34
    Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now