https://openfantasy.googlecode.com/svn/trunk/
http://openfantasy.googlecode.com/svn/trunk/openfantasy.googlecode.com/svn/trunk/
上面请求到同一个链接地址,一个是使用https协议,一个是使用http协议。
请问如何在一个项目中,配置一个链接又可以使用https,又可以使用http。说明:是某一个链接,并不是全站式https协议。
http://openfantasy.googlecode.com/svn/trunk/openfantasy.googlecode.com/svn/trunk/
上面请求到同一个链接地址,一个是使用https协议,一个是使用http协议。
请问如何在一个项目中,配置一个链接又可以使用https,又可以使用http。说明:是某一个链接,并不是全站式https协议。
解决方案 »
- Jsp页面打印
- struts2如何将jsp页面中的一个值传到pojo中的一个属性中去.(属性是对象类型的)
- 请教:这是什么问题,在线等
- 100分的初级问题
- 如何把上传文件转成2进流插进数据库?
- ResultSet.TYPE_SCROLL_INSENSITIVE(SENSITIVE)敏感与不敏感的区别?
- why: String s=="1"不对,String s.equals("1")就可以,
- eclipse+tomcat使用求救:The requested resource (/TomcatTest/servlet/HelloWorld) is not available.
- 大量数据显示问题
- 有个容易的小问题,请教,100分(在线等候!!)
- 请教jquery包装js控件后,如何调用js控件的方法和属性
- 关于页面自动跳转问题
http://bbs.chinaunix.net/thread-937513-1-1.html
http://www.webspherechina.net/club/thread-9926-1-1.html把http访问的页面转换成SSL支持的https访问 http://wenku.baidu.com/view/0865f58271fe910ef12df80b.htmlHTTP和HTTPS的区别 http://wenku.baidu.com/view/5fb7ded376eeaeaad1f3304f.html如何让浏览器在https和http之间转化? http://wenku.baidu.com/view/70e6b88fcc22bcd126ff0c09.html
希望对你有帮助
在conf/server.xml 中加入:
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="D:/test3/test2" keystorePass="123456"/>
(keysotre,truststore,cert, 数字签名... 这些东西lz自己去了解);配置之后, https://127.0.0.1 (就ok了,可能会弹出警告框;)
至于怎样才能不弹出警告, 1.导入ca; 2.网站cert的cn 要匹配网点IP; (这些是高级话题了,上网查查就知道)