PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > can't get htaccess in Apache to work
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

can't get htaccess in Apache to work

Réponse
 
LinkBack Outils de la discussion
Vieux 25/02/2005, 21h00   #1
news@celticbear.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut can't get htaccess in Apache to work

This is driving me nuts. No matter what I do, what changes I make in
httpd.conf, how I make .htaccess, I can't get directory security to
work.

I have folder:
/var/www/html/msa

In it I have the file .htaccess which contains:

AuthUserFile /var/www/html/msa/htpasswd
AuthName "Enter Password"
require valid-user
AuthType Basic
Satisfy any

To create the htpasswd file, from the command prompt in the folder I
did:

$ htpasswd -c ./htpasswd username

I put the password in twice as prompted.

I Web browse to that dir, and I don't get challenged for a password.

In my httpd.conf, I have these lines: (with some stuff in between each
section, but they are in this order)

<Directory />
Options FollowSymLinks
#AllowOverride AuthConfig
AllowOverride None
</Directory>
<Directory "/var/www/html">
Options Indexes FollowSymLinks
#AllowOverride None <--If I use this line, I can't access ANY
folder
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>

AccessFileName .htaccess

<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>


I can't find any other sections that might be related.
At this point, I can't even remember all the different ways I've tried
editing these lines. And only two results will occur: No change and I
can access the directory in question unchallenged, or I'm not allowed
to access ANY folder.

Any suggestions what in the world I'm doing wrong?

Thanks!
Liam

  Réponse avec citation
Vieux 25/02/2005, 21h13   #2
Peter T. Breuer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't get htaccess in Apache to work

In comp.os.linux.misc news@celticbear.com wrote:
> Any suggestions what in the world I'm doing wrong?


Whaever your logs say you are doing wrong. What do they say? And what
does a debug trace on your server tell you?

If you don't want to do log or trace debugging, you could always do
binary section debugging against a working config!

Peter
  Réponse avec citation
Vieux 25/02/2005, 21h13   #3
Peter T. Breuer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't get htaccess in Apache to work

In comp.os.linux.misc news@celticbear.com wrote:
> Any suggestions what in the world I'm doing wrong?


Whaever your logs say you are doing wrong. What do they say? And what
does a debug trace on your server tell you?

If you don't want to do log or trace debugging, you could always do
binary section debugging against a working config!

Peter
  Réponse avec citation
Vieux 26/02/2005, 01h51   #4
David Efflandt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't get htaccess in Apache to work

On 25 Feb 2005 13:00:54 -0800, news@celticbear.com <news@celticbear.com> wrote:
> This is driving me nuts. No matter what I do, what changes I make in
> httpd.conf, how I make .htaccess, I can't get directory security to
> work.
>
> I have folder:
> /var/www/html/msa
>
> In it I have the file .htaccess which contains:
>
> AuthUserFile /var/www/html/msa/htpasswd
> AuthName "Enter Password"
> require valid-user
> AuthType Basic
> Satisfy any


Read apache docs for Satisfy. By "any", you already meet the "Allow from
all" in Directory section, therefore, the Auth is not required. You
likely want to change or delete that Satisfy line.
  Réponse avec citation
Vieux 26/02/2005, 01h51   #5
David Efflandt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't get htaccess in Apache to work

On 25 Feb 2005 13:00:54 -0800, news@celticbear.com <news@celticbear.com> wrote:
> This is driving me nuts. No matter what I do, what changes I make in
> httpd.conf, how I make .htaccess, I can't get directory security to
> work.
>
> I have folder:
> /var/www/html/msa
>
> In it I have the file .htaccess which contains:
>
> AuthUserFile /var/www/html/msa/htpasswd
> AuthName "Enter Password"
> require valid-user
> AuthType Basic
> Satisfy any


Read apache docs for Satisfy. By "any", you already meet the "Allow from
all" in Directory section, therefore, the Auth is not required. You
likely want to change or delete that Satisfy line.
  Réponse avec citation
Vieux 28/02/2005, 21h02   #6
news@celticbear.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't get htaccess in Apache to work


David Efflandt wrote:
> On 25 Feb 2005 13:00:54 -0800, news@celticbear.com

<news@celticbear.com> wrote:
> > This is driving me nuts. No matter what I do, what changes I make

in
> > httpd.conf, how I make .htaccess, I can't get directory security to
> > work.
> >
> > I have folder:
> > /var/www/html/msa
> >
> > In it I have the file .htaccess which contains:
> >
> > AuthUserFile /var/www/html/msa/htpasswd
> > AuthName "Enter Password"
> > require valid-user
> > AuthType Basic
> > Satisfy any

>
> Read apache docs for Satisfy. By "any", you already meet the "Allow

from
> all" in Directory section, therefore, the Auth is not required. You
> likely want to change or delete that Satisfy line.


OK, I read that, makes sense. So I changed Satisfy any to Satisfy all,
as it sounds like that requires all people to have to validate...but it
still let me in.
So then I added deny from all, no change.
Then deleted the Satify line altogether, no change.
I still think it has something to do with httpd.conf, but I can figure
out what.

Thanks for replying!
Liam

  Réponse avec citation
Vieux 28/02/2005, 21h02   #7
news@celticbear.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't get htaccess in Apache to work


David Efflandt wrote:
> On 25 Feb 2005 13:00:54 -0800, news@celticbear.com

<news@celticbear.com> wrote:
> > This is driving me nuts. No matter what I do, what changes I make

in
> > httpd.conf, how I make .htaccess, I can't get directory security to
> > work.
> >
> > I have folder:
> > /var/www/html/msa
> >
> > In it I have the file .htaccess which contains:
> >
> > AuthUserFile /var/www/html/msa/htpasswd
> > AuthName "Enter Password"
> > require valid-user
> > AuthType Basic
> > Satisfy any

>
> Read apache docs for Satisfy. By "any", you already meet the "Allow

from
> all" in Directory section, therefore, the Auth is not required. You
> likely want to change or delete that Satisfy line.


OK, I read that, makes sense. So I changed Satisfy any to Satisfy all,
as it sounds like that requires all people to have to validate...but it
still let me in.
So then I added deny from all, no change.
Then deleted the Satify line altogether, no change.
I still think it has something to do with httpd.conf, but I can figure
out what.

Thanks for replying!
Liam

  Réponse avec citation
Vieux 02/03/2005, 21h53   #8
Nick Kew
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't get htaccess in Apache to work

news@celticbear.com wrote:
no change.
no change.

Ask your system administrator to enable htaccess processing for you.

If you are your own admin, just dump htaccess. It's very inefficient,
as well as unnecessarily complex.

--
Nick Kew
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h18.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16333 seconds with 16 queries