> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Peter
> Sent: Donnerstag, 2. Februar 2006 12:27
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] Re: htaccess AuthType Basic: some 
> files get served without a password challenge!
> 
> I received this back from my hosting provider:
> 
> "Thank you for giving us that information. It appears that the
> investigation is complete. We have determined that you are 
> having problems
> with password protection with your .xls files because you can 
> not password
> protect the .xls file extension with an .htaccess file in our shared
> hosting environment, as it is processed by Tomcat."

Aha!......... I don't recall you mentioning that your server was at your
ISP or that some of the content was provided by Tomcat... So not quite
so plain and simple, after all.

Anyway, it looks like your apache config is redirecting requests for XLS
to tomcat. Obviously, this will happen before any .htaccess file is read
(the file is only read if a request results in a file access in the
target dir). Therefore it skips the authentication. 

> 
> Any ideas to circumvent this? Thx

If you don't have access to the main config - no.

If you do, define the Auth directives in a <Location> container - this
[I think] will get parsed before the redirect to tomcat. Or, implement
the password access in Tomcat
http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.  

> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to