[Tomcat] Problem

Discussion in 'Java' started by krzysiek, Jun 9, 2008.

  1. krzysiek

    krzysiek Guest

    Hi

    I have problem with tomcat.

    I bought domain and setup tomcat to listen on port: 80

    Now my application run using this url:

    http://mydomain.com/myservlet/

    I put my application in /webapps/ROOT directory.

    What i need to do to change in configuration?

    I want to run my application using this url:
    http://mydomain.com/

    My tomcat version: 6.0
    Thanks
    krzysiek, Jun 9, 2008
    #1
    1. Advertising

  2. krzysiek

    Mark Space Guest

    krzysiek wrote:
    > Hi
    >
    > I have problem with tomcat.
    >
    > I bought domain and setup tomcat to listen on port: 80
    >
    > Now my application run using this url:
    >
    > http://mydomain.com/myservlet/
    >
    > I put my application in /webapps/ROOT directory.
    >
    > What i need to do to change in configuration?
    >
    > I want to run my application using this url:
    > http://mydomain.com/



    I don't see any difference in those two URLs, so I guess your app is up
    and running correctly.
    Mark Space, Jun 10, 2008
    #2
    1. Advertising

  3. krzysiek

    Dave Miller Guest

    krzysiek wrote:
    > Hi
    >
    > I have problem with tomcat.
    >
    > I bought domain and setup tomcat to listen on port: 80
    >
    > Now my application run using this url:
    >
    > http://mydomain.com/myservlet/
    >
    > I put my application in /webapps/ROOT directory.
    >
    > What i need to do to change in configuration?
    >
    > I want to run my application using this url:
    > http://mydomain.com/
    >
    > My tomcat version: 6.0
    > Thanks

    Within the <Context portion of server.xml change the docBase and path to ""

    --
    Dave Miller
    Java Web Hosting at:
    http://www.cheap-jsp-hosting.com/
    Dave Miller, Jun 10, 2008
    #3
    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. %=zerointeractive.it%

    [TOMCAT] Tomcat crashes

    %=zerointeractive.it%, Jan 22, 2004, in forum: Java
    Replies:
    1
    Views:
    402
    Erwin Moller
    Jan 22, 2004
  2. Christos Gravvanis
    Replies:
    0
    Views:
    2,028
    Christos Gravvanis
    Jul 7, 2004
  3. Rakesh Pandit
    Replies:
    0
    Views:
    492
    Rakesh Pandit
    Jul 12, 2005
  4. Marcin Cenkier
    Replies:
    1
    Views:
    5,385
    Marcin Cenkier
    Apr 12, 2006
  5. Andi
    Replies:
    5
    Views:
    1,317
Loading...

Share This Page