[apache] probleme d'accès à mon propre serveur
Bonjour,
voici ce que j'obtiens comme errreur, lorsque je veux accéder à mon propre serveur Web en local sur http://127.0.0.1/IntranetLabo/
Code:
1 2 3 4 5 6
|
Forbidden
You don't have permission to access /IntranetLabo/ on this server.
Apache/1.3.27 Server at 127.0.0.1 Port 80 |
c'est assez embetant et je ne comprend pas l'erreur
alors je suis allé chercher sur http://httpd.apache.org/docs/misc/FAQ.html#forbidden
et j'ai trouvé cette section intéressante :
Code:
1 2 3 4 5 6 7
|
Why do I get a "Forbidden/You don't have permission to access / on this server" message whenever I try to access my server?
Search your conf/httpd.conf file for this exact string: <Files ~>. If you find it, that's your problem -- that particular <Files> container is malformed. Delete it or replace it with <Files ~ "^\.ht"> and restart your server and things should work as expected.
This error appears to be caused by a problem with the version of linuxconf distributed with Redhat 6.x. It may reappear if you use linuxconf again. |
Par contre, j'ai mis en commentaire la section files correspondante dans mon fichier httpd.conf, mais rien n'y fait
je suis sous XP Pro, serveur Apache 1.3.27, serveur MySQL 4.1 et phpMyAdmin 2.6.1-rc1
merci de votre aide
sunfun
[apache] probleme d'accès à mon propre serveur
bonjour,
voici comment est défini IntranetLabo
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
# Alias for IntranetLabo
Alias /IntranetLabo/ "C:/Program Files/Apache Group/Apache/www/IntranetLabo"
<Directory "C:/Program Files/Apache Group/Apache/www/IntranetLabo">
DirectoryIndex index.html index.php index.php4 index.php5
Options None
AllowOverride none
Order allow,deny
Allow from all
</Directory> |
donc en tant qu'alias
je ne comprend pas du tout pourquoi ça ne marche pas
merci de ton aide
sunfun
[apache] probleme d'accès à mon propre serveur
bonjour,
j'ai tjrs ce problème d'accès
voici l'erreur :
Code:
1 2 3 4 5 6
|
Forbidden
You don't have permission to access /IntranetLabo/ on this server.
Apache/1.3.27 Server at 127.0.0.1 Port 80 |
je suis sous XP Pro
serveur Apache 1.3.27
serveur mysql 4.1
phpMyAdmin 2.6.1-rc1
php4
j'ai mis ceci dans le document root :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/Program Files/Apache Group/Apache/www/"
#
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory> |
et ceci en tant que alias de mon site Intranet
Code:
1 2 3 4 5 6 7 8 9 10 11
|
Alias /IntranetLabo/ "C:\Program Files\Apache Group\Apache\www\IntranetLabo"
<Directory "c:\serveur\apache\www\IntranetLabo">
DirectoryIndex index.html index.php index.php4 index.php5
Options None
AllowOverride none
Order allow,deny
Allow from all
</Directory> |
je ne trouve pas de solutions à mon probleme
comment je peux faire ?
merci d'avance
sunfunfree
[apache] probleme d'accès à mon propre serveur
bonjour,
voici le code qui marche :
Code:
1 2 3 4 5 6 7 8 9 10 11
|
Alias /IntranetLabo "C:/apache/Apache/www/IntranetLabo/"
<Directory "c:/apache/Apache/www/IntranetLabo">
DirectoryIndex index.html index.php index.php4 index.php5
Options None
AllowOverride none
Order allow,deny
Allow from 127.0.0.1
</Directory> |
merci de votre aide
voici la doc sur laquelle je me suis inspiré pour arriver à mon résultat tant attendu
http://www.netphp.org/index.php?mod=articles&ac=apache
encore merci, et vive le forum apachefrance
sunfunfree
[apache] probleme d'accès à mon propre serveur
bonjour,
j'ai encore une autre question :
en fait, je viens d'essayer de taper dans la barre d'adresses
http://127.0.0.1/IntranetLabo/docsInternes/
pour accéder à mes docs internes, un répertoire qui se trouve dans :
Code:
1 2 3 4
|
C:\apache\Apache\www\IntranetLabo\docsInternes |
Mais voici l'erreur que j'obtiens :
Code:
1 2 3 4 5 6
|
Forbidden
You don't have permission to access /IntranetLabo/docsInternes/ on this server.
Apache/1.3.33 Server at localhost Port 80 |
sachant que j'ai conservé le meme alias que précédemment pour mon répertoire racine IntranetLabo, comment je peux modifier en conséquence, pour avoir aussi les droits dans les sous répertoires? et les fichiers aussi ?
merci d'avance
sunfun[/code]