我們在Windows上使用Apache 2.2來服務SVN(1.6.2)存儲庫。我們使用SSPI進行身份驗證,這很奏效。我們有許多不同的存儲庫,並在httpd.conf中使用SVNParentPath來爲它們提供服務。喜歡的東西:Apache,SVN和mod_python
<Location />
DAV svn
SVNParentPath c:\repos
[SSPI stuff]
</Location>
因此,從客戶端,我可以瀏覽到http://svn/repo1或http://svn/repo2(無論是正回購在C:\回購),然後看看有什麼的倉庫。
但是我現在想用mod_python在另一個URL中運行python腳本,比如http://svn/mpinfo。
我試過在httpd.conf文件的末尾添加一個新的位置,如下所示:
<Location /mpinfo>
SetHandler mod_python
PythonHandler mod_python.testhandler
</Location>
截至http://www.modpython.org/live/current/doc-html/inst-trouble.html建議。然而,當我瀏覽到http://svn/mpinfo我得到以下錯誤:
<D:error>
<C:error/>
<m:human-readable errcode="720003">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>
如果我改變了資源庫的位置/ URL,例如,/ SVN,那麼我就可以瀏覽到http://svn/mpinfo。
問:
反正有從http://svn/reponame訪問的庫,但有一個特殊的目錄http://svn/mpinfo/不是SVN解析,而是通過mod_python的解析。