Glassfish: deploy of multiple applications, some of them with SSL

做~自己de王妃 提交于 2019-12-11 10:22:05

问题


A GlassFish server hosts some applications and only some of them need SSL. May be I can configure this in web.xml of the single application writing:

 <transport-guarantee>CONFIDENTIAL</transport-guarantee>

Is this the correct way ?

I thought I could achieve the same result using glassfish admin console. In the default glassfish installation there are two http listener, one with SSL on port 8181 and the other on port 8080. There is a default virtual server which has both listener. I removed listener 1 (that on port 8080) and checked that an application on a specific context path was using that virtual server. I thought it was enough to avoid http traffic to the application but it is not. I can still access it using port 8080.

What am I missing ?

In Internet I found an advice about disabling listener 1. It is not feasible to me because I would like other applications use http.

来源:https://stackoverflow.com/questions/17898888/glassfish-deploy-of-multiple-applications-some-of-them-with-ssl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!