From my understanding found here:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
"The Document Base (also known as the Context Root) directory for this web application, or the pathname to the web application archive file (if this web application is being executed directly from the WAR file). You may specify an absolute pathname for this directory or WAR file, or a pathname that is relative to the appBase directory of the owning Host." Since you've declared your host's documents to start in /path/to/virtualhost, and you've said your default context (default meaning there isn't a path specified - path="") starts in webapp1. I would think that you're actually telling tomcat to locate jsps based on this path /path/to/virtualhost/webapp1 If this is the case, then I think you should put you hello.jsp in /path/to/virtualhost/webapp1. Someone please correct me if I'm wrong. Eric On 8/28/06, Mansour <[EMAIL PROTECTED]> wrote:
Mladen Turk wrote: > Mansour wrote: > >> Now I removed these lines and deleted the auto created file /etc/httpd/conf.d/mod_jk.conf >> >> And I added to server.xml these lines >> >> <Host name="virtualhost" appBase="/path/to/virtualhost"> >> <Context path="" docBase="webapp1" debug="0"/> >> </Host> >> >> the file mod_jk.conf is generated automatically: >> > Yes I can access any file in the root directory of my virtual host > You don't need that. Remove any autoconf generation > directives. You need only to map the *.jsp, right? > >> >> Now, pointing my browser to http://virtualhost/hello.jsp gives error >> 404. >> What did I do wrong ?? and what other files I have to edit. Please I >> really need help in this?? >> > > I suppose you have your 'virtualhost' defined inside httpd.conf > as well. > Can you access http://virtualhost/index.html ? > > Regards, > Mladen. > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Learn from the past. Live in the present. Plan for the future. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]