Bonjour tout le monde,
je suis entrain de monter mon ptit environnement de dev PHP/MySQL donc pour sa j'ai eu à installer Apache.

Mais voilà qu'il me pause un problème assez génânt : lorsque que j'essaie d'accéder à un fichier en dehors de la racine du dossier il m'affiche :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
Forbidden
You don't have permission to access /undossier/unfichier.html on this server.
Par exemple, je peux très bien accèder au fichier /test.html , qui se trouve à la base du dossier.
Mais je ne peux pas accèder au fichier (ou au dossier) : /test/test.html ou /test2/ ou /undossier/unautredossier/unautredossier/test.html ...

PS : bizzarement je peux très bien accèder au dossier /phpmyadmin/ (en sachant que c'est le premier dossier que j'ai mis).

Mon fichier /etc/httpd/conf/httpd.conf (sans les commentaires et les LoadModule/AddModule):

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
ServerType standalone
ServerRoot /etc/httpd
PidFile /var/run/httpd.pid
ScoreBoardFile /etc/httpd/httpd.scoreboard
ErrorLog logs/error_log
LogLevel warn
ResourceConfig /dev/null
AccessConfig /dev/null
DocumentRoot /var/www/html
 
<IfDefine HAVE_PHP4>
LoadModule php4_module    extramodules/libphp4.so
</IfDefine>
LoadModule vhost_alias_module	modules/mod_vhost_alias.so
 
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>
AddModule mod_vhost_alias.c
 
Include conf/commonhttpd.conf
 
<IfDefine APACHEPROXIED>
    Port 8080
    Listen 8080
</IfDefine>
<IfDefine !APACHEPROXIED>
    Port 80
    Listen 80
</IfDefine>
 
<IfDefine PERLPROXIED>
    RewriteEngine on
    RewriteRule ^proxy:.*  -  [F]
    RewriteRule ^(.*\/perl\/.*)$  http://%{HTTP_HOST}:8200$1 [P]
    RewriteRule ^(.*\/cgi-perl\/.*)$  http://%{HTTP_HOST}:8200$1 [P]
</IfDefine>
 
CustomLog logs/access_log combined env=!VLOG
 
CustomLog "|/usr/sbin/advxsplitlogfile" vhost env=VLOG
 
Include conf/vhosts/Vhosts.conf
 
 
Timeout 300
 
KeepAlive On
 
MaxKeepAliveRequests 100
 
KeepAliveTimeout 15
 
MinSpareServers 4
MaxSpareServers 10
 
StartServers 4
 
MaxClients 150
 
MaxRequestsPerChild 500
 
Include  conf/addon-modules/php.conf
 
<IfModule mod_php4.c>
 
AddType  application/x-httpd-php         .php .php4 .php3 .phtml
AddType  application/x-httpd-php-source  .phps
 
</IfModule>
Merci d'avance pour votre aide.