The Tomcat User mailing list is a better place for this -- and before you
ask, search the archive.  This is a VERY frequent question there.
  Tomcat User Archive http://mikal.org/interests/java/tomcat/index.jsp
  The Tomcat User Mailing http://jakarta.apache.org/site/mail.html

-----Original Message-----
From: Geoff Austin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 26, 2001 5:11 AM
To: [EMAIL PROTECTED]
Subject: tomcat-apache setup


Hi,

I have just joined the list, so I don't know if this is an appropriate
subject for the list... If not, I have my asbestos gloves on, please
redirect
me ;)

I'm a newbie, running tomcat-apache under red Hat Linux 7.1. Everything
seems
to be OK, except for JSP FORM BASED security.

I have implemented a more-or-less straight copy of the /examples/security
sample that comes with tomcat 3.2.3...

If I use URL "http://myserver:8080/na/protected"; all works fine, the server
finds an index.jsp file in the directory, but because the directory is
"protected", it throws up the login form and after that is filled
(correctly)
it shows the index.jsp page.

However, If I omit the port 8080 and thereby request the page via apache, I
have problems. The symptoms of the problem are:

        I get a 404 (page not found) for j_security_check
        I get a 404  for the URL "http://myserver/na/protected";
        "http://myserver/na/protected/index.jsp"; - shows login as expected,
           but the login fails with 404 - j_security_check

I think I know the cause, I just don't know how to fix it. I believe that
all
JSP and servlet references are being pased to tomcat, but others are being
handled by apache and apache cant find "j_security_check" or the default
page
in /na/protected - "index.jsp" .

The following is an extract from the uriworkermap.properties file:

  # Mount the Natural Acuity context to the ajp12 worker
  /na/*=ajp12

  # Advanced mount of the examples context
  # /na/*.jsp=ajp12
  # /na/servlet/*=ajp12

This next bit is an extract from the uriworkermap.properties-auto file:

  #########################################################
  # Auto configuration for the /na context starts.
  #########################################################

  #
  # The following line mounts all JSP file and the /servlet/ uri to tomcat
  #
  /na/servlet/*=$(default.worker)
  /na/*.jsp=$(default.worker)

  #
  # If you want tomcat to serve all the resources (including static) that
  # are part of the /na context, uncomment the following line
  #
  # /na/*=$(default.worker)
  #######################################################
  # Auto configuration for the /na context ends.
  #######################################################

It seems the auto configuration is different from the non-auto.

Is this the problem area? And if so, how do I get around it?

Many thanks for your help,

  Geoff Austin

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to