You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Carlos Ramirez <ra...@roses.bna.boeing.com> on 2000/10/02 18:20:54 UTC

Re: How to use HTTP auth in a Web Application?

If you have control of your server you can add the following to your
httpd.conf:

<Location /servlets>
 AuthName myProtectedServlets
AuthType Basic
AuthUserFile /path/to/user/file
...
</Location>

or just add the above to your .htaccess file and place your .htaccess file in
the servlet directory...of course assuming you httpd.conf has AllowOverride
AuthConfig.

-Carlos



Michael Yuan wrote:

> Hi,
>
> I JMounted TomCat web applications as virtual directories under my apache
> server. I wonder if there is a way to use HTTP auth to protect the content
> in those virtual directories (JSPs and Servlets only available to
> autherized persons)? Where do I put the .htaccess files if it is at all
> possible?
>
> Thanks in advance
> Michael Yuan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org

--
-----------------------------------------------------------------------
Carlos Ramirez + Boeing + Reusable Space Systems + 714.372.4181
-----------------------------------------------------------------------
- Someday I'll find that peer and reset his connection!



Tomcat NT/IIS problem

Posted by Paul Wiggins <pw...@clickfind.com>.
I am using the Tomcat isapi_redirect.dll for IIS.  My problem looks to be a
simple configuration issue, but I am having trouble solving it (and finding
out what I need to add to which configuration file).  The problem is as
follows:

I have the site directory in the tomcat/webapps structure :

i.e.  d:\tomcat\webapps\daer\daer.jsp

When I try to login (done through that same .jsp file:
http://127.0.0.1/daer.jsp), I get an error as follows:

"HTTP Error 405
405 Method Not Allowed

The method specified in the Request Line is not allowed for the resource
identified by the request. Please ensure that you have the proper MIME type
set up for the resource you are requesting.

Please contact the server's administrator if this problem persists."

BUT, if I copy the directory to d:\tomcat\webapps\examples\jsp\daer (
http://127.0.0.1/examples/jsp/daer/daer.jsp  ), everything works just
fine...

Anyone know what could be wrong?


Thanks,

Paul