Salut,
Je suis en local sur ma machine avec un Apache 2.2 et je veux acceder à mon site http://localhost:8080/tvba/; je n'ai aucun problème pour accéder à http://localhost:8080/. Par contre pour tvba, je souhaite protéger par mot de passe l'accés à ce répertoire;
Voici mon fichier .htaccess : (à l'emplacement D:/Dev/WWW/monsite.free.fr/web/tvba/)
Voici mon fichier mdp : (à l'emplacement D:/Dev/WWW/monsite.free.fr/web/conf/)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 AuthName "Acces Restreints au dossier WEB" AuthType Basic AuthUserFile D:/Dev/WWW/monsite.free.fr/web/conf/mdp require user jean rene
jean:Er4(T
rene:4rt6
Et pour finir voici une partie de httpd.conf
Bon, voilà vous avez tout , moi j'ai rien et je boucle grave depuis 3h; voici ce que me répond le browser à ma requete http://localhost:8080/tvba/ :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 ... ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2" ... Listen 8080 ... ServerAdmin admin@localhost ... ServerName 127.0.0.1:8080 ... DocumentRoot "D:/Dev/WWW" <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all </Directory> <Directory "D:/Dev/WWW"> MultiViews Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> ... Alias "/tvba" "D:/Dev/WWW/monsite.free.fr/web/tvba/" <Directory "D:/Dev/WWW/monsite.free.fr/web/tvba"> Options Indexes FollowSymLinks Includes AllowOverride All Allow from all </Directory>
Si vous avez une idée, ça serait super.Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Merci par avance !
Partager