turn off tomcat webapp home directory

Discussion in 'Java' started by autogoor@yahoo.com, Mar 1, 2005.

  1. Guest

    Hi,

    I am using tomcat and the file structure on server is like:

    ---tomcat
    -webapp
    -myapp
    page1.jsp
    page2.jsp

    When type in "http://www.mysite.com:8080/myapp" in the browser, all my
    jsp and other source files are listed and people can download from
    there. How can I turn off the access to the "myapp" directory?

    Thanks,

    autogoor
    , Mar 1, 2005
    #1
    1. Advertising

  2. writes:

    > When type in "http://www.mysite.com:8080/myapp" in the browser, all my
    > jsp and other source files are listed and people can download from
    > there. How can I turn off the access to the "myapp" directory?


    By changing the configuration. But the normal way is to put content
    you don't want directly accessed under WEB-INF somewhere.
    Tor Iver Wilhelmsen, Mar 1, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    6
    Views:
    429
    S. Justin Gengo [MCP]
    Feb 10, 2006
  2. joes
    Replies:
    3
    Views:
    609
    Murat G.
    Sep 20, 2003
  3. Sean Berry
    Replies:
    3
    Views:
    4,551
    Tim Terry
    Dec 19, 2005
  4. robert112
    Replies:
    1
    Views:
    438
    Juan T. Llibre
    Apr 26, 2007
  5. Andrew
    Replies:
    7
    Views:
    415
    Andrew
    Jun 28, 2009
Loading...

Share This Page