【问题标题】:how to enable https if application running in tomcat and resources are comming from apache?如果在 tomcat 中运行的应用程序和资源来自 apache,如何启用 https?
【发布时间】:2014-09-04 10:24:32
【问题描述】:

我们已经创建了 spring 应用程序,它在 tomcat 中运行,资源(css、图像和 js)来自 apache。我们正在尝试启用 ssl,但我们无法从 apache 获取资源。在控制台中,无法加载资源等异常。谁能帮帮我吗。

【问题讨论】:

    标签: spring apache tomcat ssl ssl-certificate


    【解决方案1】:

    您可能应该使用 Apache 作为 tomcat 的反向代理。这样,一切都将通过 Apache。资源将直接提供,对应用程序的请求将被代理到您的 tomcat 服务器:

    http://httpd.apache.org/docs/current/mod/mod_proxy.html

    【讨论】:

    • 感谢丹尼尔·斯科特。我明白了。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-18
    • 2020-10-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多