配置 Apache、Tomcat 和雪豹服务器上的 SVN

发布于 2024-09-02 21:41:15 字数 747 浏览 2 评论 0原文

我有一台安装了 Snow Leopard Server 的 Mac mini。我需要在该系统上运行 Tomcat、Apache 和 SVN,将 Apache 配置为将 JSP 传递到 Tomcat,并可通过 Apache 访问 SVN。我尝试了各种各样的方法,并广泛搜索了谷歌,但找不到有效的正确组合。我已经能够让 svn://myname@localhost 工作,但是 svn://[电子邮件受保护] 不起作用。如果我通过端口 80 连接到服务器,Apache 也不会传递到 Tomcat。我得到的只是 JSP 文件的文本。

我在服务器前面有一个路由器,具有固定的IP,并使用端口转发将外界连接到服务器。如果我在内部将端口 80 转发到 8080,则 JSP 页面加载正常。但将 80 传递到 80 会返回上述行为。

是否有任何方法可以解决这种特定的组合?这里有人有这方面的经验吗?任何帮助将不胜感激。

我正在运行 OS X 10.6.3 服务器。汤姆猫 6.0.26。 Apache 是安装在 Snow Leopard 服务器上的。 SVN 是最新的二进制下载(不记得了,但它是在过去几周内)。我已在 Server Admin 中启用了 jk_module、dav_svn_module 和 authz_svn_module 模块。

请帮忙。这让我上周完全陷入了车轴之中。

I have a Mac mini with Snow Leopard Server installed on it. I need to have Tomcat, Apache, and SVN running on this system, with Apache configured to pass JSP through to Tomcat, and SVN accessible through Apache. I've tried all sorts of things, and googled extensively, but can't find the right combination that works. I've been able to get svn://myname@localhost to work, but svn://[email protected] won't work. Nor will Apache pass through to Tomcat if I connect to the server at port 80. All I get is the text of the JSP file.

I have a router in front of the server, with a fixed IP, and am using port forwarding to connect the outside world to the server. If I forward port 80 to 8080 internally, then JSP pages load fine. But passing 80 to 80 returns the above behavior.

Are there any how-to's that address this particular combination? Is there anyone here who has experience with this? Any help would be most appreciated.

I'm running OS X 10.6.3 Server. Tomcat 6.0.26. Apache is what came installed on Snow Leopard Server. SVN is the latest binary download (don't remember off hand, but it was within the last couple of weeks). I've enabled the jk_module, dav_svn_module, and authz_svn_module modules in Server Admin.

Please help. This has had me totally wrapped around the axle for the last week now.

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

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

发布评论

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

评论(1

玻璃人 2024-09-09 21:41:15

我已经部分解决了这个问题,如果我需要的话,我并不真正担心剩下的事情,直到稍后。

1)我被引导至这个相当长的文档,其中描述详细介绍了如何让 SVN 在 SL 服务器上的 Apache 下工作。我已经完成了许多不同的部分,正如我在网上找到的各种文章中详细说明的那样。但他们都没有把所有的事情都做对,而且有很多部分我还没有做。确实有点迷人。现在,此配置的这方面效果非常好。

2)我最终回到了 Tomcat 的原始配置:我将端口 80 从路由器转发到服务器上的端口 8080。有用。它没有做我认为可以做的事情,即让 80 转到 80,并让 Apache 自动将任何特定于 JSP 的页面请求转发到 8080 的 Tomcat。我读过多篇文章,都声称这一点。但我尝试的一切都不起作用。

我得到的最接近的是在 http.conf 文件中设置一些 ProxyPass 和 ProxyPassReverse 命令以将 JSP 转发到 Tomcat。但它真正的作用是将这样的命令转发

到目标:www​​_dot_myserver_dot_com/jsp/mypage.jsp(该死的只有一个链接,直到你是最受祝福的规则之一)。任何带有 /jsp/ 子目录的内容。我不想那样。

那好吧。我真的没有更多的时间花在这上面,所以我会坚持端口转发。随着事情的进展,我将把不同的部分移动到不同的盒子里,所以无论如何我都必须更多地调整配置。

万一有人有兴趣......

I got this partially resolved, and am not really worrying about the rest 'til later, if I need to at all.

1) I was directed to this rather long document, which describes in great detail how to get SVN working under Apache on SL Server. I'd had many disparate pieces of it done, as spelled out in various articles I found on the web. But none of them got all of it right, and there were multiple parts that I hadn't done. Kinda fascinating, really. That aspect of this configuration works really well, now.

2) I ended up going back to the original configuration I had for Tomcat: I forward port 80 from the router to port 8080 on the server. It works. It's not doing what I thought could be done, which is have 80 go to 80, and have Apache automatically forward any JSP-specific page requests to Tomcat at 8080. I've read multiple articles that claim just that. But nothing I tried worked.

The nearest I got was setting up some ProxyPass and ProxyPassReverse commands in the http.conf file to forward JSP to Tomcat. But what that really does is forward a command like this:

www_dot_myserver_dot_com/jsp/mypage.jsp (friggin' only-one-link-'til-you're-one-of-the-blessed rule) to the target. Anything with the /jsp/ sub-dir. I don't want it that way.

Oh, well. I don't really have any more time to spend on it, so I'll stick with the port forwarding. As things move forward, I will be moving different pieces to different boxes, so I'll have to mess around with the configurations more anyway.

Just in case anyone is interested....

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文