Serverpilot / digitalocean - 您无权访问此服务器上的/index.html

时间:2016-06-14 07:11:46

标签: apache .htaccess server

我正在使用serverpilot

测试数字联盟服务器

它适用于我的一半网站,但对于其他网站(他们称之为"应用程序"在serverpilot和数字海洋中)我在尝试访问网页时收到此错误消息:

Forbidden

You don't have permission to access /index.html on this server.

Possible causes of this error include:

The request was forbidden by rules in the .htaccess file.
The directory you requested does not have an index.html or index.php file.
The permissions on the file or directory are incorrect.
For details about why the request was forbidden, see the Apache error log at:

/srv/users/SYSUSER/log/APPNAME/APPNAME_apache.error.log

似乎是一个权限问题,但我不明白的是为什么当我从我的计算机上传一些网站的应用程序目录(通过filezilla)时,权限默认设置为644,而对于其他一些网站设置为600?

在何时设置权限?我是否需要在apache级别修改某些内容?我从来没有在标准托管平台上遇到过那种我无法控制服务器的问题,所以我猜这是由托管服务提供商在后台控制的?我应该在某处强制执行权限吗?怎么样?

非常感谢你的帮助,

1 个答案:

答案 0 :(得分:0)

在复制之前,请尝试确保本地文件上的文件权限为644。

Filezilla包含Serverpilot上传服务器可能支持的RFC 3659(文件事实),因此在使用ftp上传时可以复制本地文件权限。

此外,文件权限应该在当前使用FileZilla的目录列表中可见,并且还应通过上下文菜单支持目标服务器的chmod。

相关问题