I think an application runs on the root context / by default, if it's 
configured this way in server.xml :

<Engine name="Catalina" defaultHost="localhost">
   <Host name="localhost" appBase="webapps/projectname">
        <Context path="" docBase="C:\dev\projects\projectname" 
reloadable="true" />
        <Logger className="org.apache.catalina.logger.FileLogger"/>
   </Host>
</Engine>

server.xml is located at : ..\apache-tomcat-5.x\conf\ 

On Windows XP , you can try something similar in Unix.

-Rashmi

----- Original Message ----
From: John Moore <[EMAIL PROTECTED]>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Monday, March 12, 2007 9:28:59 PM
Subject: How does one configure Plain host domain url to run web app?


(Tomcat 4.x)

I have the following url that runs an application (pseudo url for 
discussion only)


http://www.mydomain.com/mysite/thecontext

works fine..

I would like to configure it so that..

http://www.mydomain.com

gets me to the same place..

I can place a "redirect" html page at

http://www.mydomain.com/mysite/index.html

which redirects to

http://www.mydomain.com/mysite/thecontext

but have yet to get a plain

http://www.mydomain.com

to work.. I keep getting either the "No Context configured....." error 
or the dreaded index of the directory..

I've tried Aliaes, Document root, Directory, and various JkMount 
settings in the Virtual host conf file that seemed like it might work, 
but so far, no joy..  (Tried Googling it, but have not come up with the 
right key words..)

Some of the things I have tried  in the conf file..

==========================
Alias /mysite "usr/tomcat/webapps/mysite"
Alias / "usr/tomcat/webapps/mysite"

DocumentRoot "/usr/local/tomcat/webapps/mysite/"

<Directory "/usr/local/tomcat/webapps/mysite">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp
  </Directory>

    JkMount /mysite/thecontext  ajp13
    JkMount /mysite/*.jsp  ajp13

..variations of..
    JkMount /*.jsp  ajp13  -- gives me a dreaded index of the correct 
directory
   JkMount /*.html  ajp13  -- same as above
   JkMount /*.  ajp13  -- blank document (strange)
   JkMount /*  ajp13  -- context error
=================================

Suggestions appreciated..

(all of my other machines are running Tomcat 5.. I will be moving this 
app next month.. so a Tomcat 5 suggestion would be welcome as well)

John..



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to