๐Ÿ‘ฝ jsreed5

A request for some help! I'd like to add subdomains to my capsule and gopherhole, so that they can be accessed from both the subdomain and just the jsreed5.org domain. When setting up HAProxy, I find that both services can be reached with both subdomains, and only the port number matters. I'd like to restrict the capsule to one subdomain and the goperhole to the other. I self-host, so I only have one IP address to associate to DNS records. Any ideas on how to do this?

2 years ago ยท ๐Ÿ‘ jo

Actions

๐Ÿ‘‹ Join Station

2 Replies

๐Ÿ‘ฝ mozz

On the gemini side, search for "HA Proxy SNI routing". I haven't done it with HA Proxy before, but I got basically the same thing working with nginx. ยท 2 years ago

๐Ÿ‘ฝ mozz

This is impossible with gopher. Because the gopher protocol doesn't communicate which host the client is connecting from, the server has no way of knowing if they want "foo.example.com" or "bar.example.com". This is one of the the things that gemini fixes by sending the entire URL in the request and using TLS SNI. ยท 2 years ago