已发布的mercurial repos - links返回404

时间:2010-07-27 19:52:51

标签: mercurial hgweb

我可以在Tomcat上使用hgwebdir.cgi发布存储库列表。但是,已发布的存储库上的链接都不起作用。 baseurl应该设置为什么?我将其设置为http://host:port/folder,其中cgi-bin位于文件夹下。网址没有正确形成(其中没有hgwebdir.cgi),我没有网址重写设置。是否需要一些Tomcat配置才能使URL工作?

1 个答案:

答案 0 :(得分:0)

据我所知,hgwebdir.cgi应该通过像Apache这样的HTTP Web服务器安装。 在Tomcat下运行它是不可能的:因此它无法正常工作。

  • 安装一个apache web服务器(如果你在windows下运行,请尝试XAMPP)
  • 安装python interpreter
  • 将hgwebdir.cgi放在您的apache Web服务器的CGI目录下。
  • 配置hgwebdir.cgi,以便在PATH上找到python
  • 您可以在mercurial book http://hgbook.red-bean.com/read/
  • 上找到更多信息