tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel Nicolas Ortuño <manuel.nicol...@carm.es>
Subject RE: Apache 2.0.50 - Tomcat 5.0.28 - Mod_jk - .htaccess
Date Tue, 07 Feb 2006 11:48:54 GMT
This is the configuration httpd.conf

<IfModule !mod_jk.c>
  LoadModule jk_module modules/mod_jk.so
</IfModule>

JkWorkersFile "/usr/local/apache/conf/workers.properties"
JkLogFile "/usr/local/apache/logs/mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories

JkMount /jsps/ ajp13
JkMount /jsps/servlet/* ajp13


I don't have LoadModule mod_access
#httpd -l
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c

Thank you for your help, but i don't understand you.

-----Mensaje original-----
De: Joost de Heer [mailto:sanguis@xs4all.nl] 
Enviado el: martes, 07 de febrero de 2006 12:08
Para: Manuel Nicolas Ortuño
CC: users@tomcat.apache.org
Asunto: Re: Apache 2.0.50 - Tomcat 5.0.28 - Mod_jk - .htaccess

> I have apache and tomcat ready. The connector (mod_jk) work well.
>
> JkMount /jsps/servlet/* ajp13
> JkMount /jsps/*.jsp ajp13
>
> The static content work with apache and .jsp work with tomcat. My problem
> is
> that i would like that /jsps work with .htaccess
>
> AuthType Basic
> require valid-user
>
> this work with static content but i use url
> http://<my_server>/jsps/my_jsp.jsp this url don’t ask me login/pass, and
> show my_jsp.jsp
>
> The same configuration in apache 1.3.12 work well.
>
> Somebody can help my?
>
> How i can configure apache for use authentication system for *.jsp and if
> the authentication is correct pass the request to tomcat.

Try switching the loadmodule lines for mod_jk and mod_access.

Joost


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message