403错误权限错误

时间:2011-07-22 08:52:39

标签: php apache

我在电脑上打开了一个apache服务器。我可以通过http://localhost访问它。当我去cmd并使用ipconfig知道我的ip并试图通过这个ip访问该网站时,它失败了。

"Forbidden

You don't have permission to access / on this server.
Apache/2.2.11 (Win32) PHP/5.2.17 Server at 169.243.***.** Port 80"

我该如何解决这个问题?我想用我的手机访问它并下载一些文件。顺便说一句,我的电脑和手机都在同一个网络上。 谢谢!

2 个答案:

答案 0 :(得分:2)

你有吗

Deny from all
Allow from localhost

httpd.conf中的某处或.htaccess?

答案 1 :(得分:1)

  • 如果您使用的是Linux,请确保将您的www目录chmod为775 (应该是默认情况下,但万一你有一些奇怪的umask 组)。

  • 确保您的www目录中有index.php

  • 如果您打算,请确保{。1}}在您的.htaccess中 显示目录列表