我在我机器上配置的ssl都好用,但是要在别人机器上也搞一套,http就能访问了,flex这时就娶不到session的值,为什么呢????
我机器上http是不能访问的
有没有人有过类似的经验,拜谢额。。

解决方案 »

  1.   

    1、
    <Connector port="8080" protocol="HTTP/1.1" 
                   connectionTimeout="20000" 
                   URIEncoding="UTF-8" />在这个里面加上一个redirectPort="8443" 这样用http访问时会自动转到https2、在应用的的web.xml中的welcome-file-list节点后面加上如下的配置
    <login-config>   
        <!-- Authorization setting for SSL -->   
        <auth-method>CLIENT-CERT</auth-method>   
        <realm-name>Client Cert Users-only Area</realm-name>   
    </login-config>   
    <security-constraint>   
        <!-- Authorization setting for SSL -->   
        <web-resource-collection >   
            <web-resource-name >SSL</web-resource-name>   
            <url-pattern>/*</url-pattern>   
        </web-resource-collection>   
        <user-data-constraint>   
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>   
        </user-data-constraint>
    </security-constraint>
    以上配置是作用是强制现在只能通过https方式访问引用
      

  2.   

    原因是 flex那几个配置文件 ,有些要改为安全的amf,或者 channel,就行了,结贴慢了