LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 620|回复: 8

不能访问 404 错误!

[复制链接]
发表于 2004-6-1 14:11:42 | 显示全部楼层 |阅读模式
我的http的问题, 开始默认测试的主页是可以看到的,但是我把默认的HTML删除掉以后,重新建立后就不能访问了,我把新建HTML的权限改成了777
还是不可以阿!!
发表于 2004-6-3 02:05:54 | 显示全部楼层
一:service httpd restart
二:清空缓寸。
 楼主| 发表于 2004-6-4 22:57:44 | 显示全部楼层

还是不可以的!

Forbidden

You don't have permission to access / on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


我 想我应该重新 弄下了阿 ! 我把那个目录下的属性都改为 777 了还是 这样!
  大哥说的 晴空缓存:p :p  不好意思 是浏览器的还是 别的什么的呢!
谢谢!!
发表于 2004-6-5 11:48:44 | 显示全部楼层
你把文件放在什么位置了..?
你这个是找不到....

你有没直接打开你要的文件,而不是打开默认主页......

打开index.php
发表于 2004-6-6 02:53:18 | 显示全部楼层
我照着论坛里的文章:最新整理apache-2.0.43和tomcat-4.1.12集成

做到 /usr/local/apache/bin/apachectl configtest
出现“Syntax OK”
但输入 http://localhost/examples  时出现404错误
内容如下:
Not Found

The requested URL /examples was not found on this server.
Apache/2.0.49 (Unix) mod_webapp/1.2.0-dev Server at localhost Port 80

请问是什么原因呢,帮帮忙好吗?谢谢啊~~
发表于 2004-6-6 08:51:44 | 显示全部楼层
楼主
是不是在httpd.conf中没有把你新建的html目录的访问
改成allow from all了
 楼主| 发表于 2004-6-6 12:09:05 | 显示全部楼层

谢谢 我试试看看怎么样!!

我的默认HTML 给删除了 又加了个HTML
吧权限 改了也!! 就出现这个错误 开始有默认HTML 的时候事可以打开的!!
发表于 2004-6-6 13:01:58 | 显示全部楼层
httpd.conf
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000;
#  don't use Group #-1 on these systems!
#
User nobody
Group nobody
 楼主| 发表于 2004-6-6 21:12:52 | 显示全部楼层

和你的上面的设置是一样的!!

我又加了个 public_html
可以访问了 但是: 必须这样 http://172.76.*.*/index.htm
才能打开网站呢?
  要不然还是一样的错误 !!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表