|
|
编写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 失败 |
|