To get tomcat integrated with Apache you will need to do the following:
1) Make sure you have added your context(s) to server.xml.
2) start tomcat
3) review the mod_jk.conf-auto file, it should be very close to what you
want. I had to add these lines to each context using struts:
JkMount /mycontext/*.do ajp12
JkMount /mycontext/pages/security/j_security_check ajp12
(The second line is only necessary if using form-based security.)
After editting the file make sure you save it under a different filename (I
used mod_jk.config), otherwise it will get overwritten next time you start
tomcat.
4) Add the "Include <path to tomcat>/conf/mod_jk.config" <- or whatever you
called it) to your httpd.conf file. Restart Apache and you should be up &
running!
HTH,
Mike
At 11/16/2000 01:45 AM -0500, [EMAIL PROTECTED] wrote:
>[EMAIL PROTECTED] wrote:
> >
> > If I recall correctly you need to modify one of Apaches config files
> > server.xml ?? to tell it that it needs to forward the *.do
> > to tomcat. It is in the Struts install directions. Try one the
> > old users guide for that info. Since I just use Tomcat I can't help
> > out.
> >
>
>server.xml is not one of Apache's config files ?
>It's tomcat's, isn't it ?
>
>What I've done is to install the struts-example directory under
>tomcat/webapps.
>As I said that works fine
>
>Then I've copied the entire directory to /home/www/servlet/struts-example,
>and set up a "context" for it in tomcat-apache.conf.
>But then I get this error : (in the error log of apache)
>"Cannot find file ..../*.do"
>This probably means that the request for *.do is not sent to tomcat / struts.
>
>I seem to recall to have read that there might be some problem with
>the URLs created by struts:
>http://localhost/servlet/editRegistration.do;jsessionid=dsfdsf3
>
>Should the ; be replaced with a & ?
>
>Regards
>Alf Hogemark
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - */
Michael H. La Budde email: [EMAIL PROTECTED]
Prosoft, Inc. phone: 414-860-6509
[EMAIL PROTECTED] fax: 414-860-7014
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - */