【发布时间】:2011-07-31 19:19:07
【问题描述】:
我正在使用 Amazon EC2 服务器。设置 Ubuntu 系统和 ProFTPD 服务器。然后我创建一个用户来上传文件。它有效。
但我无法上传 .htaccess 文件。它返回以下错误:
Response: 257 "/public_html" is the current directory
Command: TYPE A
Response: 200 Type set to A
Command: PORT 192,168,1,2,200,20
Response: 200 PORT command successful
Command: STOR .htaccess
Response: 550 .htaccess: Permission denied
Error: Critical error
Status: Disconnected from server
我通过 webmin 和终端通过 ssh 管理事情。我尝试了以下步骤:
DenyFilter *.*/(在 FTP 的配置文件中注释了这一行)
像这样添加 GLOBAL: 列表选项“-la”
但没有任何效果。
有趣的是,我可以将 .htaccess 文件上传到除“public_html”之外的其他目录..
【问题讨论】:
标签: file .htaccess ubuntu file-upload