【发布时间】:2016-03-27 12:36:18
【问题描述】:
我在 Azure 上使用 Drupal 托管了虚拟机。
在drupal/htdocs/sites 中,我创建了名为my-site.com 的新文件夹
然后我已将所有网站数据上传到此文件夹。它们是default.settings.php、settings.php 和files 文件夹。
我已经通过 phpMyAdmin 上传了我的数据库,并在 settings.php 中设置了正确的登录名和密码
当我尝试通过此网址打开此网站时:http://my.ip.address/sites/my-site.com 它显示一条错误消息:
Forbidden
You don't have permission to access /sites/my-site.com/ on this server.
我的 htaccess 文件有以下几行:
# Turn off all options we don't need.
Options None
Options +FollowSymLinks
# Set the catch-all handler to prevent scripts from being executed.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<Files *>
# Override the handler again if we're run later in the evaluation list.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
</Files>
# If we know how to do it safely, disable the PHP engine entirely.
<IfModule mod_php5.c>
php_flag engine off
</IfModule>
我做错了什么?
【问题讨论】:
标签: php .htaccess azure drupal drupal-7