GWT和SSL不工作? [英] GWT and SSL not working?

查看:112
本文介绍了GWT和SSL不工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个GWT应用程序,我使用的是MVP4G框架。我能拉起我的应用程序就好了,如果我使用HTTP。然而,当我尝试使用HTTPS打开它,它不工作。我的整个网站正常工作与SSL证书我。

I have a GWT app, I'm using the MVP4G framework. I'm able to pull up my app just fine if I use HTTP. However, when I try to open it using HTTPS it does not work. My entire site works fine with the SSL certificate I have.

有一个特定的配置,我需要让我的时候GWT编译?或者是有什么我需要在我的Apache的配置呢?任何帮助将大大AP preciated,谢谢你。

Is there a particular configuration that I need to enable when I compile GWT? Or is there something I need to do in my apache configuration? Any help would be greatly appreciated, thank you.

推荐答案

SSL应该不会影响您的应用程序,因为SSL上的其他层中运行。

SSL should not affect your application, because SSL runs on an other Layer.

要配置HTTPS,你必须设置在web.xml中的安全约束,并连接为https://事后不HTTP://。如果您连接到的http://,您会收到一个空白页

To configure HTTPS you must set the security constraints in web.xml and connect to "https://" afterwards not to "http://". If you connect to "http://" you receive a blank page.

<security-constraint>
    <web-resource-collection>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

这篇关于GWT和SSL不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆