免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1592 | 回复: 6
打印 上一主题 下一主题

apache服务器为什么会返回这些错误? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-04 12:30 |只看该作者 |倒序浏览
系统:sol8 for x86,从sunfreeware下载了apache 相应的local版本,使用pkgadd -d安装完毕,安装在/usr/local/apache,然后使用apachectl start启动apache,在出现一些配置错误,如ssl(我没装),我修改httpd.conf文件注释了有关ssl的两个module。修改了ServerName,注释了ServerAdmin,然后apache能够启动,但是试图在其它机器上访问时,出现下面的页面:

Not Acceptable
An appropriate representation of the requested resource / could not be found on this server.
Available variants:

index.html.ca , type text/html, language ca
index.html.cz , type text/html, language cz
index.html.de , type text/html, language de
index.html.dk , type text/html, language da
index.html.ee , type text/html, language et
index.html.el , type text/html, language el
index.html.en , type text/html, language en
index.html.es , type text/html, language es
index.html.fr , type text/html, language fr
index.html.he.iso8859-8 , type text/html, language he, charset iso-8859-8
index.html.it , type text/html, language it
index.html.ja.jis , type text/html, language ja, charset iso-2022-jp
index.html.kr.iso-kr , type text/html, language kr, charset iso-2022-kr
……
……
……
Apache/1.3.27 Server at MailFire Port 8080

这是什么?是某个页面吗?在那个目录下?

论坛徽章:
0
2 [报告]
发表于 2003-03-04 12:33 |只看该作者

apache服务器为什么会返回这些错误?

URL后面跟文件名了吗

论坛徽章:
0
3 [报告]
发表于 2003-03-04 12:35 |只看该作者

apache服务器为什么会返回这些错误?

只是找不到默认打开的页面而已,配置一下httpd.conf

论坛徽章:
0
4 [报告]
发表于 2003-03-04 12:39 |只看该作者

apache服务器为什么会返回这些错误?

把htdocs目录下的index.html.en文件复制并改名:index.html。

论坛徽章:
0
5 [报告]
发表于 2003-03-04 12:50 |只看该作者

apache服务器为什么会返回这些错误?

哦,原来是把目录列出来了,那如何禁止不列出目录呢?

论坛徽章:
0
6 [报告]
发表于 2003-03-04 12:55 |只看该作者

apache服务器为什么会返回这些错误?

[quote]原帖由 "jodgen"]哦,原来是把目录列出来了,那如何禁止不列出目录呢?[/quote 发表:


相应的目录设置里去掉Indexes

论坛徽章:
0
7 [报告]
发表于 2003-03-04 13:51 |只看该作者

apache服务器为什么会返回这些错误?

Indexes?是个文件?所有的Index文件去掉?那还是没用。

我想应该是哪里可以设置,大多是httpd.conf,但我找不到。

IIS怎么设置我倒是知道,只是这个跟IIS实在相差太大
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP