• 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

Question How allocate a subdomain to customer?

ferropolice

New Pleskian
Hello together,

I have one customer there would be transfer from another server to my server. I have create an new customer, add the domain (but the Domain shows actually to the old server).

But, as I say, the domain redirect to the old server. My Plan was to allocate a subdomain. How did I do that? How can I add a Subdomain like customer1.mydomainfromserver.tld to each customer (maybe in feature I have some more customers).

Thanks for your help
 
What was the purpose of allocating as subdomain? Are you wanting to test the site before going live?

You can do this by modifying the HOST file on your local computer to point to the new IP address;

  1. Locate the HOSTS file on your computer. Typically it is in one of the following locations:
    • Windows NT/2000/XP/2003/Vista/7 - C:\windows\system32\drivers\etc\hosts
    • Windows 95/98/Me - C:\windows\hosts
  2. Open this file with a text editor such as Notepad or Wordpad.
    • Right-click on Notepad and select the option to Run as Administrator - otherwise you may not be able to open this file.
    Then, open the file. Consider performing a "Save As" so you have an original copy of the file that you can restore later. You will see two columns of information, the first containing IP addresses and the second containing host names. By default, a windows hosts file should be similar to the following:
    Filename: hosts

    127.0.0.1 localhost
    You can add additional lines to this file that will point requests for a particular domain to your new server's IP address. Example:

    Filename: hosts

    127.0.0.1 localhost
    70.32.88.203 example.com
    70.32.88.203 www.example.com

  3. Save your changes.
  4. Restart any currently open browsers. You may also want to flush your DNS cache. In Windows XP, go to Start, and then Run, then type "cmd" and hit enter. Type the following:
    ipconfig /flushdns
  5. Visit your new site using Example Domain or Example Domain
 
In that case your customer must add an A-record to his existing domainname for the subdomain like "test.<domain>" and point that record to the IP address of the (your) new server.
 
Back
Top