简体   繁体   English

要使我的Restful服务只能通过https而非http访问,需要进行哪些更改?

[英]What changes require to make my Restful services only accessible through https instead http?

I am able to hit my web service with Below URL: http://localhost:8080/projectservices/route/rest/gethealth 我可以使用以下URL来访问我的Web服务: http:// localhost:8080 / projectservices / route / rest / gethealth

But I want to force the app to access REST resource using https only as: http://localhost:8080/projectservices/route/rest/gethealth 但我想强制应用程序仅使用https来使用https访问REST资源: http:// localhost:8080 / projectservices / route / rest / gethealth

FYI, I am using jboss wildfly 10 server. 仅供参考,我正在使用jboss wildfly 10服务器。 It will be very helpful if anyone over here will let me know what are the different approaches and you can also suggest me some link to get more understanding of it. 如果这里的任何人让我知道有什么不同的方法,这也将非常有帮助,您也可以建议我一些链接以加深对它的了解。 Thanks in Advance! 提前致谢!

http vs https is not dependent on Rest webservices. http vs https不依赖于Rest Web服务。 Enabling your application to be https need to be done at your server level. 需要在服务器级别完成将应用程序设为https的功能。 In your case - Jboss. 就您而言-Jboss。

Im not familiar on how this can be done in Jboss, see if below helps: https://docs.jboss.org/jbossweb/3.0.x/ssl-howto.html 我对如何在Jboss中完成此操作不熟悉,请参阅以下内容是否有帮助: https : //docs.jboss.org/jbossweb/3.0.x/ssl-howto.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM