[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] HTTP and HTTPs parallel
From: |
Evgeny Grin |
Subject: |
Re: [libmicrohttpd] HTTP and HTTPs parallel |
Date: |
Thu, 30 May 2019 23:24:56 +0300 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
Hello Sandra,
Yes, you have to start two daemons, one for HTTP and another one for
HTTPS. You can configure them with identical options, including callbacks.
However, they will not share same port.
Yes, you can enforce port sharing by MHD_OPTION_LISTENING_ADDRESS_REUSE,
but it will be unpredictable which daemon will pick-up connection.
In addition, it is not advisable to serve both types of traffic (HTTPS
and HTTP) on the same port as it may be used as security weakness.
--
Wishes,
Evgeny
30.05.2019 16:53, Sandra Gilge wrote:
> Hallo,
> is ist possible to implement A libmicrohttpd WEB-Server that supports
> HTTP AND HTTPs with one daemon?
> I was able to setup a HTTP Webserver and also a HTTPS Web server. But
> it then always answers only for HTTP or HTTPS but not both.
> Do I have to call MHD_start_daemon twice with the different settings?
> Thanks
>
signature.asc
Description: OpenPGP digital signature