What is the path to a subdomain on Ubuntu?

Discussion in 'Installation/Configuration' started by sunnyday, Apr 7, 2025.

  1. sunnyday

    sunnyday Member

    I cannot find the path to my new subdomains. I need the path for uploading my web site.

    THanks
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    The websites are in
    Code:
    /var/www/clients/
    directory tree.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Subdomains do not have their own path, they are aliases of the website you create them for. If you want a subdomain to have its own path, you must create it as a website or as vhsot-subdomain.
     
  4. sunnyday

    sunnyday Member

    Sorry for all the newbee questions.
    I am am ready to move my old subdomain web site source code to my new Ubuntu server. Is this the Ubuntu folder where I move my subdomain sites to:
    /var/www/clients/

    I read somewhere that the client folders were not for external access.

    Please clarify before I move my subdomains.

    Thanks for all of your help!!
    Tom
     
  5. sunnyday

    sunnyday Member

    Per your suggestion I created my domains as their own web sites. I can now see the folders! Thank you.

    Questions:
    1) do my subdomains need to be registered with my domain name registrar company
    2) do I need to setup DNS records within ISPConfig?

    Tom
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You should create a new thread when your first question is solved and you ask new, unrelated question.
    What do you mean by subdomain? If you already have registered your main domain, say company.tld, you can create newname.company.tld in that domain. You do not need to register newname in the name registrar company.
    Since you are asking that, my guess is you do not use ISPConfig for your DNS. If this is so, you do not need and indeed should not create DNS records in ISPConfig. Setup the newname.company.tld where your DNS records are.
     
  7. sunnyday

    sunnyday Member

     
    Last edited: Apr 9, 2025
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You should not have DNS records on both.
    You should enter the DNS records on the name server that is serving your domain. If you do not know what those are, use https://intodns.com/, enter your domain name in the box and press the "Report" button. The report shows what name servers are for that domain.
    Server names and hostnames are not registered in the name server registrar. The domain name is.
    If they already have DNS records in GoDaddy, you should not create duplicate records on ISPConfig.
    My signature has link to DNS setup tutorial, maybe it clarifies the concepts.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Like as @Taleman explained, do not create DNS records at Godaddy and ISPConfig. As you seem to just started your journey of running your own hosting server, I highly recommend to not set up your own DNS, use Godaddy instead. DNS and doing things right in DNS is one of the more advanced topics in running your hosting system, so better stay away from that for the start, use the DNS system from godaddy and don't touch ISPConfig DNS module at all. Start creating your website in ISPConfig and your email setup. And when you are more familiar with running your own server in a few months or years, you can still start switching to your own DNS. Plus, you should have at least tow servers for DNS, which you probably don't have at the moment.
     
  10. sunnyday

    sunnyday Member

    Till, I am new to Ispconfig and I did not understand this about DNS records. I have removed all DNS records in IspConfig.
    My final big issue is with my sub-domains. I have them setup as websites within Ispconfig. I have no DNS records for them (name.domain.com). I do have godaddy DNS setup for the domain (domain.com). I get this error when trying to access them:
    DNS_PROBE_FINISHED_NXDOMAIN
    Any ideas on how to resolve this would be appreiciated.

    Thank you!
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    You must create a DNS record for subdomains; This is not ISPConfig specific; you must always do that, no matter which control panel you use. Go to GoDaddy and add DNS A-Records for your subdomains pointing to your server IP address.
     

Share This Page