• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Automated Domain Aliases? Is this possible?

H

hallm

Guest
Hello Everyone,

We're a web design firm that does 'replicated hosting' for a niche industry. We setup mini-sites for clients that run on a 'username' type of setup:

Example:

site.com/joeschmo
site.com/jsmith
site.com/susie

They frequently want to use their own domain with their site, so we tell them to get a domain and forward it to their site, however this isn't ideal. Since these domains aren't really hosted on our site, and it kind of causes problems because cookies don't get set properly at times, so shopping carts and captcha's don't always work right etc etc...

We could write a script so that we direct the correct domain to the correct url (with their username at the end)... however, we'd need to automate the addition of domain aliases to our site, since we don't want to manually be adding possibly hundreds of domains to plesk...

We'd love to be able to have them go register a domain, set the nameservers to our dedicated server, set something up in their replicated site control panel and then have their site start working with their own domain name all without our interaction.

Would there be away somehow to code it in so during mini-site setup, the client adds their domain name, and then changes their name servers with their domain registrar. I'm assuming plesk stores all of the domain aliases in a database table somewhere? Could we use PHP to automatically add in the domain alisas for their site... which then tries to serve up the document root of our domain? and then we'd just detect and insert the correct user using PHP. Or better yet, automatically direct to site.com/theirusername ...

The distributors would really prefer that their domain name remain visible through the entire session...

Is this possible?

Any other ideas/suggestions solutions would be appreciated...

Our site is coded in PHP/Symfony/MySQL

We have several hundred clients, so something automated is essential.

Thanks again!
 
Back
Top