re: How does one go about allowing custom domains to point to your application? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: You'll want to look into provisioning your server with VirtualHost configurations in Apache.
 

Thanks Joshua for sharing your reply. So you're saying it's a setup on the server level and not the application level? Or perhaps a combination of both?

 

How you really want to handle it, is for each client, setup a different instance of the application. You can handle this in multiple ways. VirtualHosts are typically how we assign custom domains to their perspective instance.

1) Point the A Record of the domain to the IP of the server you intend to serve the application from.
2) Configure the server to accept the domain and serve your application.

I need to know more about the problem you are trying to solve before I can give you a solid solution for how you might host the application/server configuration. I could jump on a call and give you some direction once I hear more about what you are trying to accomplish.

I've add more details of what I'm trying to achieve on this comment.

Basically for folks to set up a profile, then at some point if they want, they can point a custom domain to said profile and it would show their profile on the application when folks hit their custom domain.

Like a blog platform would does this type of thing?

In that case, I would say that you can host within a single application. However, at the server level is where you would configure your VirtualHosts so that you can serve the application with different domains. At the application level, you will want a way to associate the custom domain with the client profile.

Yeah, I think the easiest comparison to the idea is a blog platform. Where a user can create content and "publish" it to the account on the platform I'm creating and then point their custom domain to it.

Thanks Joshua for the guidance! Think you've set me on a good path :)

code of conduct - report abuse