2011-07-22 72 views
1

我在我的电脑上打开了一个Apache服务器。我可以通过http://localhost访问它。当我去cmd并使用ipconfig知道我的ip并尝试通过此ip访问网站时,它失败了。403错误许可错误

"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" 

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

+0

您自己的搜索带来了什么结果?你尝试了什么,什么不起作用?更加详细一些。 –

回答

2

你有

Deny from all 
Allow from localhost 

在你的httpd.conf或.htaccess的某个地方?

1
  • 确保您chmod'd您的www目录775,如果你是在Linux上 (应该是默认的,但以防万一你有一些奇怪的umask 集)。

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

  • 确保Options -Indexes是在你的.htaccess如果你打算 显示目录列表