1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Automated Domain Aliases? Is this possible?

Discussion in 'Plesk for Linux - 8.x and Older' started by hallm, Dec 26, 2009.

  1. hallm

    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:



    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!
  2. IgorG

    IgorG Forums Analyst Staff Member

    Oct 27, 2009
    Likes Received:
    Novosibirsk, Russia