django-hosts icon indicating copy to clipboard operation
django-hosts copied to clipboard

Custom domains

Open alexanderisora opened this issue 6 years ago • 3 comments

Hello everyone! Thanks for the awesome library. I'm building a website generator. My users are able to create websites and host them on subdomains. Django-hosts does the job perfectly. Yay!

But how can I let my users set up a custom domain? I'm stuck and don't know where to dig. Any piece of advice would be much appreciated.

alexanderisora avatar Feb 20 '19 11:02 alexanderisora

I store both the subdomain name and the custom domain name of each user. But I have no idea how to route requests from a custom domain to a subdomain.

alexanderisora avatar Feb 20 '19 13:02 alexanderisora

were you able to resolve this?

professorhaseeb avatar Jul 30 '20 02:07 professorhaseeb

you could try using a wildcard?

nerdoc avatar Apr 10 '22 16:04 nerdoc