在 Ubuntu 上托管多个站点

发布于 2024-12-27 11:15:46 字数 328 浏览 2 评论 0原文

我正在使用 Ubuntu 11.10,并且尝试使用 this 教程,但配置后出现错误:

禁止

您无权访问此服务器上的 /。阿帕奇/2.2.20 (Ubuntu) 服务器位于 test.local 端口 80

有人能帮我解决问题吗?

I am using Ubuntu 11.10 and I am trying to host multiple sites on local for development by using this tutorial, but after configuration I get error:

Forbidden

You don't have permission to access / on this server. Apache/2.2.20
(Ubuntu) Server at test.local Port 80

Can someone help me to solve problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不回头走下去 2025-01-03 11:15:46

你的日志文件里有什么东西吗?

###> cd /var/log/apache2/
root@e520:/var/log/apache2
###> ls -ltr

最后一个文件是最新的文件。看看它:

less error.log (然后按 G (大 g))或使用 tail -f ...

我猜你的文档根目录中没有“index.html”文件。如果您不允许列出目录,则会收到权限被拒绝的错误。

Is there something in you logfiles?

###> cd /var/log/apache2/
root@e520:/var/log/apache2
###> ls -ltr

The last file is the most recent one. Look at it:

less error.log (Then press G (big g)) or use tail -f ...

I guess you don't have a "index.html" file in your document root. If you don't allow directory listing, you get a permission denied error.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文