3

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

Cemo
  • 5,370
  • 10
  • 50
  • 82
  • 2
    Note that browsers use port 443 by default for HTTPS requests. You would need to forward all port 80 requests to 3131 and all port 443 requests to 8443. – Vortico Jul 29 '11 at 08:56
  • @Vortico Thanks. You helped me a lot.I have changed my default ports as you suggested. now I am listening 80 and 443 and it solved my issue. – Cemo Aug 02 '11 at 08:31

1 Answers1

3

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

Cemo
  • 5,370
  • 10
  • 50
  • 82