Apache 网络服务器 &使用 https 的 JBoss AJP 连接

发布于 2024-08-11 01:31:44 字数 229 浏览 6 评论 0原文

我们正在托管一个在 JBoss 上运行的 Java EE 应用程序。出于安全原因,该应在 Internet 上提供的应用程序受到前端 Apache 服务器的保护。我们正在使用 AJP 来实现这一点。

当我们通过 http 访问应用程序时,这可以正常工作。当我们尝试使用 https 执行此操作时,它不起作用,当我们访问 Java EE 应用程序时,我们会收到 404 错误。我们已将 SSL 证书放置在 Apache 服务器中。

We are hosting a Java EE Application running on JBoss. For security reasons this application that should be available on the internet is protected with a front-end Apache server. We are using AJP to enable this.

This works fine when we access the application through http. When we try to do this with https, it doesn't work, we get a 404 error when we access the Java EE application. We have placed the SSL certificates in the Apache server.

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

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

发布评论

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

评论(2

酒几许 2024-08-18 01:31:45

apache 上的 SSL 通常是使用单独的虚拟主机 (vhost) 启用的。您是否为该虚拟主机启用并配置了 mod_jk (mod_proxy_ajp/mod_cluster)?

SSL on apache is usally enabled using a separate virtual host (vhost). Have you enabled and configurered mod_jk (mod_proxy_ajp/mod_cluster) for that vhost?

夜夜流光相皎洁 2024-08-18 01:31:44

引用自 community.jboss.org< /a>

加密和 SSL 支持

AJP 协议未加密,因此不应与公共网络基础设施一起使用。如果由于传输介质可能被外界嗅探而需要保护 Web 和应用程序服务器之间的数据传输,则必须使用某种 SSL 隧道。另一种选择是将 https 协议与 mod_proxy 一起使用。然而,使用 https 协议会使事情变得更加复杂,因为必须确保在应用程序服务器中编写自定义过滤器,以便客户端证书透明地传递到应用程序服务器。另一方面,AJP 协议会自动处理此问题,但结果是在 Web 和应用程序服务器之间传递解密数据。从本质上来说,对于 SSL,AJP 协议的行为类似于缓存 SSL 加速器。
这提供了更高的性能,因为数据仅解密一次。通过使用不同的网卡以及一组防火墙和路由器来保护 Web 和应用程序服务器之间的网络是最安全的解决方案。
另一种选择是将 Web 和应用程序服务器放在同一个物理盒子上,在这种情况下,将使用内存通信,从而提高整个系统的安全性。

Quote from community.jboss.org

Encryption and SSL support

AJP protocol is not encrypted, so it should not be used with public network infrastructure. In case there is a need for securing the data transfer between web and application server because the transport media could be sniffed by outside world, then some sort of SSL tunnel must be used. The other option is to use the https protocol with mod_proxy. However using https protocol makes things a little bit more complex because one must assure to write the custom Filter in application server so that client certificates get passed transparently to the application server. AJP protocol on the other hand handles this automatically, but with the consequence of passing decrypted data between web and application server. In essence for SSL, the AJP protocol behaves like caching SSL accelerator.
This offers much higher performance because data is only decrypted once. Securing the network between web and application server by using a different network card and set of firewalls and routers is the most secure solution.
One other option is to put the web and application server on the same physical box in which case the in-memory communication will be used thus increasing the security of the entire system.

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