PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > .htaccess
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

.htaccess

Réponse
 
LinkBack Outils de la discussion
Vieux 04/10/2006, 16h13   #1
Chris
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut .htaccess

My host tells me .htaccess is enabled on the server

I created a folder in my webspace called /secure and uploaded a file called

..htaccess and .htpasswd. contents below. but it does not work.

Any idea what is wrong?



htaccess
/home/website1/secure/.htpasswd AuthGroupFile /dev/null AuthName "Security
Area" AuthType Basic <Limit GET POST> require valid-user </Limit>

htpasswd
test:test



  Réponse avec citation
Vieux 04/10/2006, 16h19   #2
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: .htaccess

On 2006-10-04, Chris <me@privacy.net> wrote:
> I created a folder in my webspace called /secure and uploaded a file called
> .htaccess and .htpasswd.
> Any idea what is wrong?
>
> htaccess
> /home/website1/secure/.htpasswd AuthGroupFile /dev/null AuthName "Security
> Area" AuthType Basic <Limit GET POST> require valid-user </Limit>


Did you cut out a part of the file or is in this conditions? if it is,
then the file is hopelessy trashed.

> htpasswd
> test:test


The password can't be in clear text. You must create the file using
the provided tool htpasswd, that must use the same libraries of the
server, otherwise it won't be able to read the password correctly.

Read the documentation about basic authentication.

Davide

--
The memory management in Windows 95 can be used to frighten small children.
  Réponse avec citation
Vieux 04/10/2006, 16h23   #3
Jerim79
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: .htaccess


Chris wrote:
> My host tells me .htaccess is enabled on the server
>
> I created a folder in my webspace called /secure and uploaded a file called
>
> .htaccess and .htpasswd. contents below. but it does not work.
>
> Any idea what is wrong?
>
>
>
> htaccess
> /home/website1/secure/.htpasswd AuthGroupFile /dev/null AuthName "Security
> Area" AuthType Basic <Limit GET POST> require valid-user </Limit>
>
> htpasswd
> test:test


I don't know the answer to your problem, but I recently read that the
use of .htaccess is not the preferred method of doing security on a
directory. The recommendation was to define the access in the main
configuration file for Apache. By looking for .htaccess in every
directory, this slows down the performance of Apache.

  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 21h24.


É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,08597 seconds with 11 queries