Aliasing a directory and using .htaccess for that directory

Discussion in 'Apache' started by manouche, Apr 12, 2008.

  1. #1
    I have a directory that I have aliased in httpd.conf. Here is the entry:

    Alias /libstats/ "/www/home/libdev/libstats/"
    <Directory "/libstats/">
    AllowOverride All
    Order allow,deny
    Allow from all
    </DIRECTORY>

    I have an .htaccess file in the /www/home/libdev/libstats/ directory. Here is the contents:


    AuthUserFile /usr/local/htusers/.htpasswd
    AuthName "Add/Modify Records"
    AuthGroupFile /dev/null
    AuthType Basic
    <LIMIT GET>
    require valid-user
    </LIMIT>

    When I access the directory using the alias, I am not prompted for a password. When I use the full directory in the url, I need a password and it works just fine.

    What am I missing?
     
    manouche, Apr 12, 2008 IP