2013-01-24 4 views
0

J'ai un serveur virtuel sur une machine Centos (Linux i-8941-35408-VM 2.6.18-308.11.1.el5xfr # 1 SMP mar. 10 09:29:47 HAE 2012 x86_64 x86_64 x86_64 GNU/Linux). Mon fichier de configuration Vhost est le suivant:Comment résoudre cette erreur interdite 403

<VirtualHost *:80> 
ServerAdmin [email protected] 
ServerName subdomain.domain.biz 
ServerAlias sudomain.domain.biz 

DocumentRoot /home/myfolder/public_html/subdomain.domain.biz/public 

LogLevel warn 
ErrorLog /home/myfolder/public_html/subdomain.domain.biz/log/error.log 
CustomLog /home/myfolder/public_html/subdomain.domain.biz/log/access.log combined 

<Directory /home/myfolder/public_html/subdomain.domain.biz/public> 
Options FollowSymLinks -Indexes -Includes 
#What about Multiviews for Options above 
AllowOverride All 
Order allow,deny 
Allow from all 
</Directory> 

Je n'ai pas de fichier .htaccess.

La liste des répertoires du dossier « public » est comme suit

-rw-r--r-- 1 root root 2763 Jan 22 07:11 FailedTRAN.php 
-rw-r--r-- 1 root root 11890 Jan 22 18:54 GetHandleRESponse.old 
-rwxrwxrwx 1 root root 12024 Jan 23 17:14 GetHandleRESponse.php 
drwxr-xr-x 2 root root 4096 Jun 9 2012 images 
-rw-r--r-- 1 root root 2562 Jan 22 07:11 Index.html 
-rw-r--r-- 1 root root 9556 Jan 23 18:21 SendPerformREQuest.php 
-rw-r--r-- 1 root root 3396 Jan 22 07:11 StatusTRAN.php 

Je suis en mesure d'accéder au Index.html de mon navigateur, mais toute tentative d'accéder aux résultats GetHandleRESponse.php dans une erreur 403 Forbidden . Ainsi, lorsque j'envoie une requête à un autre serveur, l'autre serveur doit publier ses réponses en accédant à la page GetHandleRESponse.php. Cela échoue. Je suis incapable de comprendre pourquoi c'est le cas. Toute aide serait appréciée.

Répondre

1

Les répertoires doivent avoir l'autorisation x (x ne signifie pas l'exécution lorsque nous travaillons avec des répertoires, x signifie l'autorisation d'accès).

+0

Merci. Cependant, le problème concernait le contexte de sécurité de ces fichiers. Dans les architectures SE Linux, les fichiers Centos ont un contexte de sécurité. J'ai fait un ls -lZ et j'ai eu l'inscription suivante
drwxrwxrwx racine racine racine: object_r: user_home_t SendPerformREQuest.phpso J'ai fait un chcon -vR --type = httpd_sys_content_t SendPerformREQuest.php qui a résolu le problème. –

Questions connexes