1
我的Mercurial服务器不工作。Ubuntu服务器上的Mercurial服务器
当我访问此页面出现127.0.0.1/mercurial
以下文字:
#!/usr/bin/env python
#
# An example hgweb CGI script, edit as necessary
# See also http://mercurial.selenic.com/wiki/PublishingRepositories
# Path to repo or hgweb config to serve (see 'hg help hgweb')
config = "/var/www/hgweb.config"
# Uncomment and adjust if Mercurial is not installed system-wide
# (consult "installed modules" path from 'hg debuginstall'):
#import sys; sys.path.insert(0, "/path/to/python/lib")
# Uncomment to send python tracebacks to the browser if an error occurs:
#import cgitb; cgitb.enable()
from mercurial import demandimport; demandimport.enable()
from mercurial.hgweb import hgweb, wsgicgi
application = hgweb(config)
wsgicgi.launch(application)
我跟着this tutorial。
我在目录/var/www/
中配置了服务器。
出了什么问题?
感谢缺乏启用模块:sudo a2enmod cgi – user3393252
是的,没有启用CGI肯定会这样做。 :) –