LinuxSir.cn,穿越时空的Linuxsir!

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

SUSE apache 的UserDir 问题[已经解决]

[复制链接]
发表于 2006-10-18 21:19:59 | 显示全部楼层 |阅读模式
刚开始安装好 APACHE ,各项运作的没问题。 我在 /home/kane/public_html/  下面新建了一个 index.php ,一开始可以正常通过 http://localhost/~kane 来浏览的,但是问题我修改 index.PHP的内容后,浏览的时候内容没有更新。 权限 755 777 都试过了。

后来上网有看了些资料,要到 Yast2  的 HTTP 服务器 和 /etc/config编辑器里面修改些东西。
地址http://susewiki.org/index.php?ti ... mepages_on_Apache_2

YaST->Network Services->HTTP Service->Modules->Edit->Userdir->Toggle Status on  (其中这里我只找到 userdir ,默认已经是 on 的了。 没找到 Toggle。)

YaST->System->/etc/sysconfig Editor->Network->WWW->Apache2->APACHE_CONF_INCLUDE_FILES-> set to /etc/apache2/mod_userdir.conf and press Finish.



修改完之后, 就访问不到 http://localhost/~kane  ,提示

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
Wed Oct 18 21:06:14 2006
Apache/2.2.0 (Linux/SUSE)


有人知道怎么回事么?

另外,我用不到 UserDir 命令。


---------------
解决办法: 在yast2 的 http服务器里面 的 默认主机 加上  userdir  = public_html  
就可以了。。
发表于 2006-10-18 22:08:26 | 显示全部楼层
我以前默认安装好apache后Userdir都已经配置好了,http://127.0.0.1/~username 就可以直接访问,通过yast配置后反而不好访问了,后来重新安装了apache才好了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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