已发布的 Mercurial 存储库 - 链接返回 404

发布于 2024-09-11 11:31:45 字数 267 浏览 1 评论 0原文

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

I am able to publish the list of repositories using hgwebdir.cgi on Tomcat. However none of the links on the published repository work. What should the baseurl be set to? I set it to http://host:port/folder where the cgi-bin is right under the folder. The urls dont form correctly (dont have the hgwebdir.cgi in them) and i have no url rewriting setup. Is there some Tomcat configuration needed to get the urls working?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悲喜皆因你 2024-09-18 11:31:45

据我所知,hgwebdir.cgi 应该通过 HTTP Web 服务器(如 Apache)安装。
无法在 Tomcat 下运行它:因此它无法工作。

  • 安装 apache Web 服务器(如果您在 Windows 下运行,请尝试 XAMPP)
  • 安装 python 解释器
  • 将 hgwebdir.cgi 放在 apache Web 服务器的 CGI 目录下。
  • 配置 hgwebdir.cgi,以便它可以在 PATH 上找到 python
  • 您可以在 Mercurial 书籍 http: //hgbook.red-bean.com/read/

as far as I know hgwebdir.cgi should be installed via an HTTP Web server like Apache.
It is not possible to run it under Tomcat: for this reason it is not working.

  • install an apache web server (try XAMPP if you are running under windows)
  • Install a python interpreter
  • Put the hgwebdir.cgi under the CGI dir of your apache web server.
  • Configure the hgwebdir.cgi so it can find python on PATH
  • You can find more information on the mercurial book http://hgbook.red-bean.com/read/
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文