已发布的 Mercurial 存储库 - 链接返回 404
我可以在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,hgwebdir.cgi 应该通过 HTTP Web 服务器(如 Apache)安装。
无法在 Tomcat 下运行它:因此它无法工作。
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.