Hi,
I’ve got an app hosted on Galaxy at e.g. www.mysite.com and I’d like to allow each customer to point their own domain to a path on my domain, e.g. www.mysite.com/somename.
I’ve got a working solution for this already, but it feels like I’m probably doing either something not ideal or just plain wrong. What I do at the moment is:
- I’ve set up another domain at domains.mysite.com which can be used to access my site and is listed in my app’s domains on the Galaxy dashboard.
- I ask the user to create a CNAME for their domain to point to mine, e.g. www.theirsite.com → domains.mysite.com and ask them to add their domain name to their settings in my app
- I then manually add their domain to the acceptable domains for my app in the Galaxy dashboard.
- when it’s loaded, my app will compare the host header in the HTTP request to the domain info stored in the database and display the correct path for the user so that www.mysite.com/theirname appears to be served from www.theirsite.com
Any hints or tips on this would be greatly appreciated!
thanks, Nick