LinuxSir.cn,穿越时空的Linuxsir!

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

apache的问题

[复制链接]
发表于 2004-12-4 14:22:29 | 显示全部楼层 |阅读模式
我配置好apache后,测试http://localhost 没问题.
然后我再/home/user1中建立public_html   在里面放了一个网页
chown user1.user1 public_html
再回到/home下,chmod 711 use1
然后再http://localhost/~user1  提示
Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster

Error 404

localhost
2004?ê12??04?? ?????ù 14?±23*?19??
Apache/2.0.40 (Red Hat Linux)
是那里配置错了??
发表于 2004-12-4 15:41:47 | 显示全部楼层
还要在修改httpd.conf文件,只是修改一点点,你在置顶的帖子找一下
 楼主| 发表于 2004-12-4 23:05:28 | 显示全部楼层
能说一下是修改哪吗 ?置顶的帖子太多,我找了 很久都没有找到啊 !
 楼主| 发表于 2004-12-4 23:05:59 | 显示全部楼层
能说一下是修改哪吗 ?置顶的帖子太多,我找了 很久都没有找到啊 !
发表于 2004-12-4 23:23:49 | 显示全部楼层
modify DOCUMENT ROOT in your httpd.conf
发表于 2004-12-5 00:05:30 | 显示全部楼层
#locate httpd.conf

找到位置 ,修改httpd.conf .   ~ 
 楼主| 发表于 2004-12-6 21:54:47 | 显示全部楼层
修改哪啊 ?都说修改,我也知道修改啊!难道就没有一个高手吗??晕^
发表于 2004-12-6 22:09:04 | 显示全部楼层
DocumentRoot命令,用来指定主文档的地址。

命令格式: DocumentRoot [Path]

例:DocumentRoot /home/httpd/html

UserDir命令,用来指定个人主页的位置。如果你有一个用户test,那么它主目录是"/home/test",当客户端输入"http://yourdomain/~test",系统就会到对应的目录"/home/test/UserDir/"中去寻找。其中"UserDir"就是在UserDir命令中设置的指定目录。

命令格式: UserDir [Path]

例: UserDir Public_html

DirectoryIndex命令,用来声明首页文件名称。一般地,我们使用"index.html"或"index.htm"作为首页的文件名。如果这样设置后,那么客户端发出WEB服务请求时,将首先调入的主页是在指定目录下文?quot;index.html"或"index.htm"。

命令格式: DirecotryIndex [filename]

例:DirecotryIndex index.html index.htm


http://www.linuxsir.cn/forum.php?mod=viewthread&tid=13716
以上的内容来自上边这个url
发表于 2004-12-6 22:53:09 | 显示全部楼层
最初由 7forever 发表
修改哪啊 ?都说修改,我也知道修改啊!难道就没有一个高手吗??晕^

Such change is so trivial and easy to locate.  In fact, it already has answers in the forum.

I am not offending you, however, if you what to learn, you should explore.  We don't tell you directly the answer because we want you to learn, not just being fed.
发表于 2004-12-7 07:53:16 | 显示全部楼层
楼上的观点我支持.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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