【问题标题】:Why I can't access my apache server from another user rather than root user or from outsider the server为什么我不能从另一个用户而不是 root 用户或服务器外部访问我的 apache 服务器
【发布时间】:2017-07-31 23:18:55
【问题描述】:

我无法从服务器外部或从 ubuntu 用户而不是 root 用户访问我的 apache 服务器。

谁能帮帮我?

【问题讨论】:

  • 您可以访问Apache服务器。您正在成功地从中读取文件。错误消息说您无权写入/var/www/ 目录的用户(这是正常的,您不希望普通用户写入构成网站的文件,这是应该的仅在部署时发生)

标签: apache server


【解决方案1】:

这是因为wget 试图将index.html 文件写入/var/www 目录(您的当前目录),而您的用户不能这样做(而root 用户可以在此目录中写入)。

【讨论】:

  • 我想知道为什么我无法从服务器外部访问 apache 服务器,您能帮帮我吗?
  • 您的 httdp.conf 或虚拟主机中的某些参数可以强制您的服务器仅侦听 127.0.0.1 而不是所有 IP
猜你喜欢
  • 2011-12-10
  • 1970-01-01
  • 2022-07-28
  • 2023-04-05
  • 2019-05-22
  • 1970-01-01
  • 1970-01-01
  • 2022-10-02
  • 2017-09-28
相关资源
最近更新 更多