dcsimg
How do I authenticate all my servlets under Tomcat-Apache combination
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Javauser_S
Posted On:   Tuesday, January 8, 2002 02:00 PM

Hi, My problem is that I need to provide authntication to my servlets and NOT any other gif's or jpegs or other image files loaded by the jsp's or servlets. This is because fast reloading of a jsp which loads many images cause problems with authentication. A dialog box keeps appearing asking for the username and password.All the image files reside under Tomcat-4.0.1. I use the mod_webapp to connect Tomcat to Apache-1.3x. I do the authenication in the httpd.conf of Apache and use the NTLM authentication scheme.My httpd.conf looks like this. WebAppConnection warpConnection warp localhost:8000 WebAppDeploy myservlets warpConnection /myservlets/ WebAppDeploy    More>>

Hi,
My problem is that I need to provide authntication to my servlets and NOT any other gif's or jpegs or other image files loaded by the jsp's or servlets.


This is because fast reloading of a jsp which loads many images cause problems with authentication.


A dialog box keeps appearing asking for the username and password.All the image files reside under Tomcat-4.0.1.

I use the mod_webapp to connect Tomcat to Apache-1.3x.


I do the authenication in the httpd.conf of Apache and use the NTLM authentication scheme.My httpd.conf looks like this.

			
WebAppConnection warpConnection warp localhost:8000
WebAppDeploy myservlets warpConnection /myservlets/
WebAppDeploy ourservlets warpConnection /ourservlets/


AuthName NTAuth
AuthType NTLM
NTLMAuth On
NTLMAuthoritative on
NTLMDomain Mydomain
NTLMServer Myserver
require valid-user
Satisfy all


The location /*/* provides authentication to the servlets and ALSO to the image files under Tomcat.
Is there some way to exclude them and not get them authenticated?Also I find that
does not provide authentication to the servlets and the RemoteUser is returned null.
Does'nt the /* mean ALL urls?

   <<Less
About | Sitemap | Contact