红联Linux门户
Linux帮助

apache 问题

发布时间:2008-03-21 10:51:56来源:红联作者:aqliyi
我在RedHat Linux 9.0 下配置apache的.配好后,检查httpd.conf文件也没错误.可在windows xp访问不了我在Liun下/home/liyi/public_html/index.html页面.很奇怪.....
#vi /etc/httpd/conf/httpd.conf

:

UserDir disable root
UserDir public_html

...
开启
...
...

修改 DefaultLanguage zh_cn
和AddDefaultcharset gb2312
最后wq退出.
新建个用户 #useradd liyi;
给新用户个密码 #passwd liyi;
在给用户个711权限.
给root个ip,netmask,gateway. 开启ifdown etho;ifup eht0 ;
再开启service httpd start; 用apachectl configtest检查文件httpd.conf,没问题.
个人认为没问题.一切配置项目ok.不会出现问题.可....不然!
我在windows xp IE下输入http://10.10.10.10/~liyi,等了一会时间.页面跳了下.找不到
Linux下的index.html页面.请大家看看哪里出了错,还是少了什么?在此谢谢了!
文章评论

共有 0 条评论