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

2019-07-07 02:13发布

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条回答
Lonely孤独者°
2楼-- · 2019-07-07 02:33

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

查看更多
登录 后发表回答