Apache配置问题,郁闷中...

tbklyan 2005-02-25 06:37:56
瘟2K+Apache+PHP
输入地址后提示:

Forbidden
You don't have permission to access /Mydir/test/0116-02.htm on this server.


--------------------------------------------------------------------------------

Apache/2.0.53 (Win32) Server at ... Port 8080

问题具体出在哪个地方?怎么解决?
...全文
248 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Meteorlet 2005-03-06
  • 打赏
  • 举报
回复
1.[Directory][/Directory]有没有allow all?

2.test目录是不是everyone可以访问?
jh1860 2005-03-06
  • 打赏
  • 举报
回复
再配个站看看
<VirtualHost 192.168.1.10:80>
ServerAdmin ashun@51500.com
DocumentRoot d:/web
ServerName seo10.bbsamway.com
DirectoryIndex index10.htm.
</VirtualHost>

<VirtualHost 192.168.1.10:80>
ServerAdmin ashun@51500.com
DocumentRoot d:/web
ServerName seo11.bbsamway.com
DirectoryIndex index11.htm.
</VirtualHost>

<VirtualHost 192.168.1.10:80>
ServerAdmin ashun@51500.com
DocumentRoot d:/web
ServerName seo12.bbsamway.com
DirectoryIndex index12.htm.
</VirtualHost>
tbklyan 2005-02-28
  • 打赏
  • 举报
回复
谢谢fzjw(Icy mote)
1、应该和权限没多大干系,因为同样一个文件,若我把文件名的中文去掉,怎能正常访问
2、下面是部分代码:
...
<tr class="dark_row"><td class="default_td" align="left"

valign="top"><a class="default_a"

href="/index.php?dir=&file=mycodes.net%D6%D0.txt"><i

mg alt="[txt]" height="16" width="16"

src="index_icons/apache/text.png" />

mycodes.net中.txt</a> [<a class="default_a"

href="/index.php?dir=&delete=mycodes.net%D6%D0.txt">

<span class="small">delete</span></a>, <a

class="default_a"

href="/index.php?dir=&rename=mycodes.net%D6%D0.txt">

<span class="small">rename/move</span></a>]</td><td

class="default_td" align="right" valign="top"><a

title="mycodes.net中.txt
1,944 bytes (1.9 KB)">1.9 KB</a></td><td

class="default_td" align="right" valign="top"><a

title="mycodes.net中.txt
Last Modified: 2003-Sep-08 11:46:20 AM
Last Accessed: 2005-Feb-25 12:00:00

AM">2003-Sep-08</a></td></tr>
....
tbklyan 2005-02-28
  • 打赏
  • 举报
回复
兄弟们,help!
fzjw 2005-02-26
  • 打赏
  • 举报
回复
注意访问权限的设置
Apache2支持Unicode,文件名包含中文应该可以访问,不过,不要试图通过直接输入中文URL访问,应该在页面写一个中文链接,然后直接点击链接访问。
<a href="http://localhost/测试页.htm">test</a>
tbklyan 2005-02-25
  • 打赏
  • 举报
回复
Up一下先
补充说明:
1、 在主目录下,若文件名含有中文,访问的时候也会这样提示,
文件名不含中文的文件,则能正常访问。
2、 在子目录下,访问任何文件都会出现上述提示

24,922

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧