Jump to content

using Alias in httpd.conf with an .htaccess file


manouche

Recommended Posts

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?

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.