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

[cobalt-users] RE: .htaccess for dummies



I did not find "AllowOverride AuthConfig Indexes Limit" in the
/etc/httpd/conf/access.conf file. I did change "AllowOverride" from "None"
to "All" in 2 places, and I did an "htttd restart" but it did not help.
Acces to the directory is still wide open.

What did I miss?

Thanks,
Fred


> 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/].
>
>
> Le 1/05/02 15:28, « Linuxman » <linuxman@xxxxxxxxxxxxxxxx> a écrit :
>
> > I am trying to setup .htaccess on a raq4, but it's not working. This is
what
> > I did:
> >
> > 1) I Put the following at the bottom of /etc/httpd/conf/access.conf
> > <Directory /home/sites/site1/web/can>
> > AllowOverride All
> > Options All
> > </Directory>
> >
> > 2) Created a .htaccess file in teh directory to be protected as follows:
> > #Access file
> > order allow,deny
> > allow from all
> > require valid-user
> > AuthPAM_Enabled off
> > Authname canuauthme
> > Authtype Basic
> > AuthUserFile /home/sites/site1/web/can/robboard/.htpasswd
> >
> > 3) I created a password file in the directory to be protected
> > (/home/sites/site1/web/can/robboard) by typing:
> > htpasswd -c .htpasswd [username]
> >
> > 4) I chown the 2 files to admin.
> >
> > 5) I chmod the 2 files to 755
> >
> > 6) I restarted the server
> >
> > When I go the directory I want to protect, I am not prompted for a passw
ord.
> > Any thoughts about what I missed?
> >