Can I use Basic HTTP Authentication using Apache+JServ?
Location: http://www.jguru.com/faq/view.jsp?EID=103759 Created: Jul 17, 2000 Modified: 2000-07-21 19:19:08.246 Author: Joshua Lynch (http://www.jguru.com/guru/viewbio.jsp?EID=103303) Question originally posed by Mike Reedy (http://www.jguru.com/guru/viewbio.jsp?EID=98127 I recently did this with Apache and Tomcat. Using Basic HTTP Authentication is an Apache function, so this method should work with Apache and any servlet engine. Different web servers will, of course, work differently. If you haven’t already done so, read the Apache FAQ about authentication (section G) at apache.org, especially QA G.2. Also read the Apache Week article referenced there (http://www.apacheweek.com/issues/96-10-18#userauth). These resources will give you a good idea about how Apache can be configured to restrict access to URL’s. Neither one explicitly tells you how to use authentication with servlets, so I’ll spell it out here. Use the