LinuxSir.cn,穿越时空的Linuxsir!

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

编写httpd时出现的问题?求教?急!!!

[复制链接]
发表于 2005-4-21 14:02:10 | 显示全部楼层 |阅读模式
编写httpd时出现的问题?求教?急!!!



我想实现apache的用户认证,于是我执行了以下的操作:

#mkdir /var/www/passwd
#cd /var/www/passwd
#htpasswd -c test admin

然后将认证的口令文件属主改为 apache

让后编译httpd
<directory :/var/www/html/homepage">
allowoverride none
authtype basic
authname "test"
authuserfile /var/www/passwd/test
require valid-use
<directory>


后重启httpd 服务出现
关闭httpd 失败
启动httpd Syntax error on line 980 of etc/httpd/conf/httpd.conf:
Invalid commnd 'it' perhaps mis-spelled or defned by a module not included in the server configuration 失败
发表于 2005-4-21 14:14:20 | 显示全部楼层
它说在httpd.conf的980行位置的"it"要吗拼写错误,要吗解释该指令的模块未load

解决,先检查指令是否正确,再试试将所有模块一个一个load再看看哪个模块对此指令生效
回复 支持 反对

使用道具 举报

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

本版积分规则

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