2012-11-28 54 views
0

当我试着使用SVN和WebDAV我收到此错误消息在启动Apache服务:不要SVN WebDAV的启动Apache服务

Syntax error on line 120 of /etc/apache2/mods-enabled/dav_svn.conf: 
Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration 
Action 'configtest' failed. 

线条115 - 125:

<Location /svn> 
    DAV svn 
    SVNParentPath /var/svn/teste 
    SVNListParentPath On 
    AuthType Basic 
    AuthName "myproject subversion repository" 
    AuthUserFile /etc/apache2/senhas 
    <LimitExcept GET PROPFIND OPTIONS REPORT> 
     Require valid-user 
    </LimitExcept> 
</Location> 

我搜索mod_auth,我找不到他。这个怎么解决?

我使用Ubuntu和Apache2的

+0

请发布/etc/apache2/mods-enabled/dav_svn.conf文件的第115 - 125行。 –

+0

添加我的配置 –

回答

0

确保您启用了authn_file Apache模块。

要在Debian/Ubuntu服务器上这样做,您将发出a2enmod authn_file,然后重新启动apache。

+0

当我这样做时,我收到错误消息:“authn_file不存在!” –

+0

你在运行什么操作系统和apache版本? –

+0

Apache 2.2.17和Ubuntu SMP –