DEV Community

Discussion on: How does one go about allowing custom domains to point to your application?

Collapse
 
jackharner profile image
Jack Harner πŸš€

You're looking to do essentially what GitHub Pages does with the custom domains.

Just a rough draft thought I'm having this morning but I would think you could have a database connecting the custom domains to profile IDs or whatever and then have a bash script that runs every 15 minutes that would then go create or destroy the (assuming Apache) VirtualHosts files pointing the domains to the profiles.

There's probably a more dynamic/optimized way to do that but it might work?