Hello,
My config: apache 1.3, mod_ssl 2.8, mod_jk 1.2, Tomcat 5.0, Solaris 9
I want to protect servlet by a .htaccess file.
Here is the url of my servlet:
https://www.myserver.fr/servlet/secure/servlet/myservlet
Config files:
---- httpd.conf ----
JkMount /servlet/servlet/secure/* lamoral
---- server.xml ---
<Context path="/servlet/secure" docBase="/absolute/path/to/servlet/secure" debug="10" reloadable="true" crossContext="false"/>
I put the .htaccess in /absolute/path/to/servlet/secure:
AuthType Basic AuthName "myapp" AuthAuthoritative on AuthRadiusAuthoritative on AuthRadiusCookieValid 5 AuthRadiusActive On require user user1 user2 user3
When I access to https://www.myserver.fr/servlet/secure/servlet/myservlet i get this 404 apache error:
The requested URL /servlet/secure/servlet/myservlet was not found on this server.
If i access https://www.myserver.fr/servlet/secure I get the listing of the directory from tomcat. So I access one more time to https://www.myserver.fr/servlet/secure/servlet/myservlet and it's OK....!???
What appened? I can't see anything interesting in the apache logs (level debug).
Why I must access to https://www.myserver.fr/servlet/secure first?
Thank you,
Emmanuel Leguy.
smime.p7s
Description: S/MIME Cryptographic Signature
