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

Re: [cobalt-users] .htaccess issue



Hello,

I have done this already, and no, it made no differences.  I know that
.htaccess files are working, because I use them to block some IP's and also
for SymLinks, but as soon as try to use them to password protect a directory
I get the Cannot find server or DNS Error message.

Can anyone help us with this?

Thank you.

Paul Mullett

>
> Hi Paul,
>
> I have got the same problem. I posted it to the list and became the answer
I
> forward you now. Unfortuatly I still have the problem :-(
>
> Please tell me, if you are sucessfull,
>
> Best,
> Felix
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]Im Auftrag von
> a.neeser@xxxxxxxxxxx
> Gesendet: Sonntag, 2. Dezember 2001 17:18
> An: cobalt-users@xxxxxxxxxxxxxxx
> Cc: cobalt@xxxxxxxxxxx
> Betreff: Re: [cobalt-users] no access to .htaccess folders after Cobalt
> Updates
>
>
> Hi Felix
>
> Have a look about this post in the Knowledge Base:
>
>
http://cobalt-knowledge.sun.com/cgi-bin/kbase.cfg/php/enduser/std_adp.php?p_
> sid=
>
Thhf8G1g&p_lva=&p_refno=010829-000005&p_created=999094584&p_sp=cF9ncmlkc29yd
> D0mc
>
F9yb3dfY250PTYmcF9zZWFyY2hfdGV4dD0uaHRhY2Nlc3MmcF9zZWFyY2hfdHlwZT0zJnBfcHJvZ
> F9sd
>
mwxPX5hbnl_JnBfcHJvZF9sdmwyPX5hbnl_JnBfY2F0X2x2bDE9fmFueX4mcF9jYXRfbHZsMj1_Y
> W55f
> iZwX3NvcnRfYnk9ZGZsdCZwX3BhZ2U9MQ**&p_li=
>
> 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/].
>
> Best regards
> Allen Neeser
>
>
>
> > -----Ursprüngliche Nachricht-----
> > Von: cobalt-users-admin@xxxxxxxxxxxxxxx
> > [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]Im Auftrag von Paul Mullett
> > Gesendet: Dienstag, 11. Dezember 2001 10:45
> > An: cobalt-users@xxxxxxxxxxxxxxx
> > Betreff: [cobalt-users] .htaccess issue
> >
> >
> > Hello,
> >
> > I wonder if anyone can shed any light on this for me.  I have a RaQ4i
> > dedicated server with Verio in the UK, and I am having trouble with the
> > .htaccess settings.
> >
> > I am using the .htaccess files with no problem when it comes to
> > turning off
> > directory snooping, making Symlinks and denying IP addresses access etc.
> >
> > BUT, my problem is as soon as I try to use htpasswd it's falls
> > flat on it's
> > face.  That is to say, I create the .htaccess file in a
> > sub-directory which
> > looks like this:
> >
> > order allow,deny
> > allow from all
> > require valid-user
> > AuthName "Private Area"
> > Authtype basic
> > AuthUserFile /home/sites/site1/web/whateverfolder/.htpasswd
> > AccessList
> > AuthPAM_Enabled off
> >
> > I then create the auth file using:
> >
> > htpasswd -c .htpasswd username
> >
> > As far as I can tell this is correct.  I then attempt to access
> > the password
> > protected folder (which I could access with no problems before
> > creating the
> > .htaccess file) and I am strangely greeted with a Cannot find
> > server or DNS
> > Error message?!  When I remove the htaccess file, it works again.
> >
> > I believe I have changed all the conf files correctly and I have read
all
> > that I can.  As I say it works for symlinks etc, but not for password
> > protecting.
> >
> > Any help greatly appreciated.
> >
> > Paul Mullett
> >