Wonder if anyone has done work in this are on Felix HTTP. Looks like since Jetty 9.4 it's possible to use a DetectorConnectionFactory to serve HTTP and HTTPS on a common port:
https://stackoverflow.com/questions/65568213/redirect-http-to-https-on-the-same-port-with-jetty-identifying-http-vs-http Primary use (in our case) would be an auto redirect of HTTP to HTTPS, but I guess others may find it useful just to allow both protocols. Happy to dig into the JettyService code and have a go at this if no one else has and there's no alternative approaches. The basics should be possible with existing config options e.g. if both HTTP and HTTPS are configured and the port is the same, use a DetectorConnectionFactory approach. If not, operate as current. The redirect part can be done in user servlet or context handling code (at least initially). Although with agreement on approach and config, it should be possible to support that as a configurable option too. --- Rob Walker [cid:[email protected]] www.ascert.com<http://www.ascert.com/>
