上一篇:Drupal 7: 多站点的实现
下一篇:500 internal server error(已解决)
Drupal 7: 403 - Forbidden Error
米娅 2013年2月15日 17:16:09

我本来要安装drupal 7下的多站点,可是在 sites-->all下建的子目录下的文件无法访问,一直显示:

403 - Forbidden Error
You are not allowed to access this address.
If the error persists, please contact the website webmaster.If you are the webmaster of this site please log in to Cpanel and check the Error Logs. You will find the exact

reason for this error there.

Common reasons for this error are:

•Incorrect file/directory permissions: Below 644.
In order files to be read by the webserver, their permissions have to be equal or above 644. You can update file permissions with a FTP client or through cPanel's File

Manager.

•Restrictive Apache directives inside .htaccess file.
There are two Apache directives which can cause this error - 'Deny from' and 'Options -Indexes'.

 我就干脆把可疑的都注销了,.htaccess 前面那几行看起来如下,结果就可以访问了:

# Protect files and directories from prying eyes.    --- add 3 # before these three lines as below
#<FilesMatch ".(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(.php)?|xtmpl)$|^(..*|Entries.*|Repository|Root|Tag|Template)$">
#  Order allow,deny
#</FilesMatch>

# Don't show directory listings for URLs which map to a directory.
#Options -Indexes

# Follow symbolic links in this directory.
#Options +FollowSymLinks

不过,安全性可能就不过好了。


共1页
相关链接