Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mercurial不';不要在Apache中询问密码_Apache_Mercurial_Redmine - Fatal编程技术网

Mercurial不';不要在Apache中询问密码

Mercurial不';不要在Apache中询问密码,apache,mercurial,redmine,Apache,Mercurial,Redmine,我的apache配置: GNU nano 2.2.6 File: /etc/apache2/conf.d/hg.config # Use PerlLoadModule Apache2::Redmine when using apache2, or else you might get$ PerlLoadModule Apache::Redmine ScriptAliasMatch ^/repos/hg(.*) "/var/mercuri

我的apache配置:

GNU nano 2.2.6       File: /etc/apache2/conf.d/hg.config                      

# Use PerlLoadModule Apache2::Redmine when using apache2, or else you might get$

PerlLoadModule Apache::Redmine
ScriptAliasMatch ^/repos/hg(.*) "/var/mercurial/hgwebdir.cgi$1"
#ScriptAlias /repos/hg  "/var/mercurial/hgwebdir.cgi"
<Location /repos/hg>
    AuthType Basic
    AuthName "Redmine Mercurial Repository"
    Require valid-user

    #Redmine auth
    PerlAccessHandler Apache::Authn::Redmine::access_handler
    PerlAuthenHandler Apache::Authn::Redmine::authen_handler
    RedmineDSN "DBI:mysql:database=redmine;host=localhost"
    RedmineDbUser "redmine"
    RedmineDbPass "xxxxxx"
</Location>
GNU nano 2.2.6文件:/etc/apache2/conf.d/hg.config #在使用Apache2时使用PerllodModule Apache2::Redmine,否则您可能会$ PerllodModule Apache::Redmine ScriptAliasMatch^/repos/hg(.*)“/var/mercurial/hgwebdir.cgi$1” #ScriptAlias/repos/hg“/var/mercurial/hgwebdir.cgi” AuthType Basic AuthName“重新挖掘Mercurial存储库” 需要有效用户 #红矿认证 PerlAccessHandler Apache::Authn::Redmine::access\u处理程序 PerlAuthenHandler Apache::Authn::Redmine::authen\u处理程序 RedmineDSN“DBI:mysql:database=redmine;host=localhost” RedmineDbUser“redmine” RedMinedPass“xxxxxx” 当我输入
tracker.dev01/repos/hg
时,它会要求输入密码,但当我输入
tracker.dev01/repos/hg/test
时,它会显示没有密码的回购

有什么帮助吗


谢谢

可能太简单了。。。但评论建议使用
Apache2::Redmine
,您可以使用
Apache::Redmine
。您正在使用apache2,是吗?

事实证明,问题在于该项目是公开的,而我正在强制登录。Redmine.pm说,该脚本允许匿名用户浏览公共项目的存储库,这就是为什么我收到500个内部服务器错误


所以我删除了强制日志记录,让它设置为,而不是使用正则表达式,将项目设置为PRIVATE,它现在正在工作

哈哈,我没看那个,我要试试。谢谢,它说有很多红色的。。。重新定义在…,不知道为什么,谷歌搜索它不会导致任何结果(使用关键字Redmine perl重新定义)。但是我错误地想出了读Redmine.pm的解决方案!