htpasswd not prompting for password

by Zama Ques   Last Updated August 14, 2019 12:04 PM

I have the following Apache balancer manager configuration .

 <Directory "/apps/httpd/htdocs1/balancer-manager">
 Order deny,allow
 AuthName "Restricted area for authorised users only"
 AuthType Basic
 AuthUserFile /apps/httpd/conf/admin.users
 Require valid-user

  $ ls -l "/apps/httpd/htdocs1/balancer-manager"
  total 4
  -rw-r--r-- 1 root root 67 Aug  9 20:43 README

But my DocumentRoot is different as there is some application level dependency

     grep DocumentRoot /apps/httpd/conf/vhosts1/ssl_schoolportal.conf
     DocumentRoot "/data/web/myapp/"

If I change the DocumentRoot to same as in balancer-manager config as shown below it works fine and prompts for password

            DocumentRoot "/apps/httpd/htdocs1"

Any suggestions to make it work where it prompts for password by keeping the DocumentRoot different from as defined in Balancer_manager config .

Related Questions

How to point all domain with ELB dns

Updated April 20, 2015 20:01 PM