How do I serve https and http for Jetty by one port

此生再无相见时 提交于 2019-12-23 17:37:01

问题


What I want to do is serving http and https at the same time for my jetty application. I have SelectChannelConnector and SslSocketConnector connectors and their ports are 3131 and 8443 respectively.

I would like to transparently forward requests

http://localhost:80/* --> http://localhost:3131/*
https://localhost:80/* --> https://localhost:8443/*

What is the easiest way to make it?

Thanks


回答1:


As Vortico suggested, I changed my ports to 80 for http and 443 for https. It solved my problem.



来源:https://stackoverflow.com/questions/6870637/how-do-i-serve-https-and-http-for-jetty-by-one-port

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