[ANN] chess puzzles on gemini
Côme Chilliet
come at chilliet.eu
Fri Dec 4 22:32:23 GMT 2020
Le vendredi 4 décembre 2020, 22:42:29 CET colecmac at protonmail.com a écrit :
> > PS: and yes, it does mean I managed to use SNI to host several domain
> > on the same server.
>
> How did you do this? I've seen some general SNI proxies that would probably
> work, but I'm interested in your specific setup.
I used the SNI_server_certs of the SSL context of the PHP stream, instead of the local_cert/local_key pair.
Sadly this option is not documented in the PHP documentation but I’ve found information about it on the web.
For each domain you need to cat the cert and the key together in a unique pem file, and then in SNI_server_certs you pass an array with domains as key and certificate path as value.
You can read my code here: gemini://code.lanterne.chilliet.eu/
The SNI bit is in gemini://code.lanterne.chilliet.eu/vendor/mcmic/gemini-server/src/Server.php
Côme
More information about the Gemini
mailing list