Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not the author, but there's no config that needs to be generated. Just run a HTTPS server with a wildcard cert that serves all traffic from a wildcard 'vhost' *.example.com to your application code. Then, your application can just look at the Host header to see which 'endpoint' it should serve.


Thanks! So I dont need to register every sub-domain? I thought that I must register every sub domain name on my DNS config.


Wildcard DNS records (i.e. `*.example.com`) are your friend in situations like this :)


yep, that's exactly it :) - I'm using an ALB on AWS to manage the incoming requests




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: