[collections] in new WSGI
Christian Ebert
blacktrash at gmx.net
Fri Jun 30 06:02:43 CDT 2006
Hello,
My httpd.conf says:
Alias /mercurial "/Users/chris/Sites/hg-cgi"
<Directory "/Users/chris/Sites/hg-cgi">
DirectoryIndex index.cgi
AddHandler cgi-script .cgi
Order allow,deny
Allow from all
Options ExecCGI
</Directory>
/Users/chris/Sites/hg-cgi/hgweb.config says eg.:
[paths]
Baustellen = /Users/chris/Hg/Baustellen
/Users/chris/Sites/hg-cgi/Baustellen/index.cgi says:
#!/sw/bin/python
import cgitb, os, sys
cgitb.enable()
sys.path.insert(0, "/Users/chris/lib/python")
from mercurial import hgweb
from mercurial.hgweb.hgweb_mod import hgweb
from mercurial.hgweb.request import wsgiapplication
import mercurial.hgweb.wsgicgi as wsgicgi
def make_web_app():
return hgweb("/Users/chris/Hg/Baustellen", "Baustellen")
wsgicgi.launch(wsgiapplication(make_web_app))
Ok. This works.
But how can I use [collections]? As far as I understand it, it
should spare me creating all those directories with an index.cgi
in it. But if I have in hgweb.config:
[collections]
/Users/chris/Hg = /Users/chris/Hg
it always prepends the `mercurial' Alias (from httpd.conf?) and
can't find /mercurial/Users/chris/Hg/Baustellen.
What am I doing wrong? Or does it mean that I simply can't use
[collections] in my case?
c
--
_B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>
More information about the Mercurial
mailing list