简体   繁体   中英

How do I resolve this 403 forbidden error

I have a vhost on a Centos machine (Linux i-8941-35408-VM 2.6.18-308.11.1.el5xen #1 SMP Tue Jul 10 09:29:47 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux). My Vhost config file is as follows

<VirtualHost *:80>
ServerAdmin myemail@gmail.com
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>

I do not have a .htaccess file.

The directory listing of the "public" folder is as follows

-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

I am able to access the Index.html from my browser, However any attempt to access GetHandleRESponse.php results in a 403 Forbidden error. So when I send out a request to another server the other server has to post its responses by accessing the GetHandleRESponse.php page. This fails. I am unable to figure out why this is the case. Any help would be appreciated.

目录应该具有x权限(当使用dirs时,x并不意味着执行,x意味着访问权限)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM