You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Omar Vera <ov...@jala-industries.com> on 2003/06/17 19:02:09 UTC
How to generate the mod_jk.conf with Tomcat 4.1.24 or 4.0.6
Hi to everbody,
I am trying to have generated the mod_jk.conf with Tomcat 4.1.24 or 4.0.6
in solaris 8, but they are not generated when I start the Tomcat. Do you
know how to do it? John Turner suggest to use Tomcat 4.1.12 because it auto
generate the mod_jk.conf, but this build is not available anymore.
I hope you can help me.
Thanks in advance.
Omar Vera
problems with web.xml and security
Posted by Rosaria Silipo <ro...@yahoo.com>.
I am not sure this email reached this mailing list.
I am re-posting it just in case.
My apologies if you receive it twice.
-- Rosaria
*****************************************************
Hi,
I am trying to set up Tomcat as a secure web engine.
>From the tutorial I understood that you should insert the following
lines in web.xml and the password protection should work.
This works perfectly for files in the root directory (/*), it does not
work for files in subdirectories, like /secure/*.
Have you have ever seen this problem before?
Thanks for any help
-- Rosaria
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
...
<!-- SECURITY CONSTRAINT -->
<security-constraint>
<web-resource-collection>
<web-resource-name>Secure Pages</web-resource-name>
<description>Security constraint on all files</description>
<url-pattern>/*</url-pattern>
<url-pattern>/secure/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<description>admin can login</description>
<role-name>admin</role-name>
</auth-constraint>
<user-data-constraint>
<description>SSL not required</description>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<!-- LOGIN AUTHENTICATION -->
<login-config>
<auth-method>FORM</auth-method>
<realm-name>default</realm-name>
<form-login-config>
<form-login-page>/LoginForm.html</form-login-page>
<form-error-page>/LoginError.html</form-error-page>
</form-login-config>
</login-config>
<!-- SECURITY ROLES -->
<security-role>
<description>The most secure role</description>
<role-name>admin</role-name>
</security-role>
</web-app>
-- Rosaria
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How to generate the mod_jk.conf with Tomcat 4.1.24 or 4.0.6
Posted by John Turner <to...@johnturner.com>.
Actually, I suggest using the latest version of Tomcat, 4.1.24. My Solaris
HOWTO uses 4.1.12 because that was what was current when I wrote the HOWTO,
and access to a non-production Solaris box at this time would require lots
of work, and I am lazy.
To generate mod_jk.conf, you need Listener elements in server.xml. This is
described explicitly in the HOWTO, search for "Listener". You'll need one
ApacheConfig Listener for the Server in server.xml, and one ApacheConfig
Listener for each and every Host in server.xml. That said, you don't need
to auto-generate mod_jk.conf...its just a convenience for some people. You
can easily create what you need manually, see an example here:
http://www.johnturner.com/howto/mod_jk_conf.html
John
On Tue, 17 Jun 2003 13:02:09 -0400, Omar Vera <ov...@jala-industries.com>
wrote:
> Hi to everbody,
> I am trying to have generated the mod_jk.conf with Tomcat 4.1.24 or
> 4.0.6
> in solaris 8, but they are not generated when I start the Tomcat. Do you
> know how to do it? John Turner suggest to use Tomcat 4.1.12 because it
> auto
> generate the mod_jk.conf, but this build is not available anymore.
> I hope you can help me.
> Thanks in advance.
> Omar Vera
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org