ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Apache Web-Serving with Mac OS X, Part 4
Subject:   .htaccess or Virtual Host, not both
Date:   2002-11-13 11:40:06
From:   epaul
I am running Virtual Hosts in order to serve an number of webdomains. I want to use .htaccess to limit access to certain areas of some sites. If I comment out the Virtual Hosts in httpd.conf then I get the login request, so I believe that .htaccess and .htpasswd are configured correctly. With the Virtual Hosts active I do not ever see the login request. I have tried placing .htaccess in different directories, placing the Auth* information directly in the httpd.conf file in the main <Directory> file just before AllowOverride All. The error log is silent on the subject.