[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] .htaccess



<snip>

>
> You need AuthPAM_Enabled off
> I'm not sure if it's required, but I also had AuthGroupFile /dev/null

Cheers.  I now have:

AuthPAM_Enabled off
AuthGroupFile /dev/null
AuthName Protected-Directory
AuthType Basic
AuthUserFile /home/sites/site2/web/clients/.htpasswd
<limit GET POST>
require valid-user
</limit>
ErrorDocument 401 /noauth.htm

But I still get the problem - Internal Server Error.  Could it be the path
to my noauth.htm.  The thread in the archive frist showed a full URL to the
file but then later stated that there might be a problem with this.

I just want to emphasize that it works as long as I _don't_ have the
ErrorDocument line in there.


> If it's a RaQ4 you need to make a change to the AllowOverride field.
> >From the Cobalt Knowledge Base:
> "There is an issue of htaccess files not being recognized on the RaQ4.
> This is due to the default configuration of the access.conf file and the
> AllowOverride parameter. The default configuration of the .htaccess
> files do allow for password protecting directories. The AllowOverride
> directive is not set to "All" by default because this is a security
> risk. To change the directive edit the /etc/httpd/conf/access.conf file
> and replace AllowOverride AuthConfig Indexes Limit to AllowOverride All.
>
> Note, there are two places "AllowOverride AuthConfig Indexes Limit" is
> set. One is under the [Directory /] and one under [Directory
> /home/sites/]. The one to replace is under [Directory /home/sites/]."

Is this just when it is not being recognised at all?  I seem to remember
having this problem the first time I set up .htaccess on a new RaQ4 but I
have other directories where htaccess works.  Just not where I want to
specify the 401 document.

Cheers,

Andy