Last "/" in webapp URL

Discussion in 'Java' started by Mike, Mar 5, 2006.

  1. Mike

    Mike Guest

    I have tomcat4 in conjuction with Apache server serving jsps


    I have a webapp "foo" with a default page of index.jsp.

    index.jsp is accessed via: http://mydomian/foo/

    Is there a way to configure the web.xml file in "foo" such that I can
    drop the last "/" from the URL? In other words via:

    http://mydomian/foo


    Interesting enough, as is, in can be accessed that way using tomcat4
    direct as http://mydomain:8080/foo


    Thanks
    Mike, Mar 5, 2006
    #1
    1. Advertising

  2. Mike

    Mike Guest

    Discovered my own answer.
    Answer lies in Apache conf file.

    I had: JkMount /foo/* worker1

    Added: JkMount /foo worker1





    On Sun, 05 Mar 2006 21:01:17 GMT, (Mike) wrote:

    >
    >
    >I have tomcat4 in conjuction with Apache server serving jsps
    >
    >
    >I have a webapp "foo" with a default page of index.jsp.
    >
    >index.jsp is accessed via: http://mydomian/foo/
    >
    >Is there a way to configure the web.xml file in "foo" such that I can
    >drop the last "/" from the URL? In other words via:
    >
    >http://mydomian/foo
    >
    >
    >Interesting enough, as is, in can be accessed that way using tomcat4
    >direct as http://mydomain:8080/foo
    >
    >
    >Thanks
    Mike, Mar 5, 2006
    #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:
    410
    S. Justin Gengo [MCP]
    Feb 10, 2006
  2. Ben Jessel
    Replies:
    5
    Views:
    445
    marcus
    Jun 29, 2004
  3. prezjt
    Replies:
    1
    Views:
    589
    Tor Iver Wilhelmsen
    Mar 8, 2007
  4. Replies:
    3
    Views:
    1,809
    Marcelo Morales
    Mar 6, 2008
  5. Andrew
    Replies:
    7
    Views:
    403
    Andrew
    Jun 28, 2009
Loading...

Share This Page