Hi,

I am new to Tomcat. I have configured apache with Tomcat 6.014 using mod_jk.
Below is my Tomcat Virtual Host created in server.xml file

<Host name="www.abcd.org" appBase="webapps/www.abcd.org"
unpackWARs="true" autoDeploy="true">
xmlValidation="false" xmlNamespaceAware="false">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="webapps/www.abcd.org/logs"
prefix="www.abcd.org.access." suffix=".log" pattern="common"
resolveHosts="false"/>
<Alias>abcd.org</Alias>
</Host>

Here the directory is "webapps/www.abcd.org". If i put a sample page
index.jsp in it. It doesn't get executed. But if i create a directory under
"webapps/www.abcd.org" and then move index.jsp file in ROOT directory, it
gets executed.

I have not mentioned about ROOT directory anywhere but still tomcat looks
for file in ROOT folder.

webapps/www.abcd.org/index.jsp                     Page not Executed in
Browser
webapps/www.abcd.org/ROOT/index.jsp           Page Executed in Browser

How can I avoid creating of additional directory i.e. ROOT.



Gaurav Pruthi

Reply via email to