我有几个使用 hgweb 发布并使用 Apache 2.2 保护的 Mercurial 存储库
有没有办法拥有多种安全配置?
我想为大多数存储库提供默认配置,然后为特定存储库单独配置。
httpd.conf
文件看起来像这样
WSGIScriptAlias /hg "C:/hg/hgweb/hgweb.wsgi"
<Directory "/hg/repo_one">
Order deny,allow
AuthType Basic
AuthName "R1 Secure Area"
AuthBasicProvider file
AuthUserFile c:/apache2.2/repo_one.pwd
Require valid-user
</Directory>
<Directory "/hg">
Order deny,allow
AuthType Basic
AuthName "Secure Area"
AuthBasicProvider file
AuthUserFile c:/apache2.2/passwords
Require valid-user
</Directory>