Closed alandefreitas closed 6 years ago
Not a stupid question at all, but currently one would need one server for each port you wish to accept connections on. That is, in your case you would need two servers.
But both servers can of course share the same asio::io_service
if that is favourable.
Oh, you need to different ports for HTTP and HTTPS. Defaults are 80 for HTTP, and 443 for HTTPS.
I'm sorry if that's a stupid question but... when I run a Server, can I redirect a request from http://localhost:8080/ to https://localhost:8080/ without creating two servers?