Subdomain not working

Discussion in 'General' started by RioSif, Jan 26, 2012.

  1. RioSif

    RioSif Member

    I am trying to make a subdomain to work for almost 2 days with no luck. I searched the forum and google to find a solution but i can't make it work.
    My domain is
    I made it forward www to non-www and that works.
    I want a my subdomain to be and look at the directory /kb/ where is at but i want it to always stay to and work like, where icons is at /kb/icons/ etc(i hope you understand what i mean.
    Could someone tell me step by step what i should do? From the very beginning please. From the dns entries until add website and add subdomain? Please...

    Thank you very much
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    When a subdomain shall have its own directory, then you should add it as website and not as subdomain (see instructions in the manual) as subdomains use rewrite rules so that you can not install php scripts like scm systems into the subdirectory then.

    1) Delete the subdomain.
    2) Add a new website and enter "" into the domain field.
  3. RioSif

    RioSif Member

    I red that too but that will create a different home directory, won't it?
    Then the index.php of would be at web1/index.php and the index.php of the would be at the web2/index.php, and web1 and web2 would have the same home directory, right?
    Ok, i'll try that. What entries should i add at the dns section for that?
  4. till

    till Super Moderator Staff Member ISPConfig Developer


    No. They are different websites (vhosts) that run under different Linux users.

    Add a dns A-record for "kb" in the zone "" that points to the IP address of your server.
  5. RioSif

    RioSif Member

    I'll try that and reply, thanks for the quick replies
  6. RioSif

    RioSif Member

    Ok, you are right, it works, thanks.
    But i have some questions. I red on other posts your replies say that that's how apache works(i guess nginx too). But how does cpanel manage to do it without a new website? No offense, i am just curious.
    Now second and more important. I don't want to have one ftp for every website. If i have 10-20 subdomains(then 10-20 websites) it's not handy to have to use 10-20 ftp accounts. I tried change the home directory of my ftp user to have /var/www/clients/client1/ as root but i can't see files of any site than the one i entered at the site field of the ftp user at the creation time, i cant just browse the directories. It would be handy a client could browse and upload files to all of his sites.
    Is that at any way possible? Something like admin ftp account?
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    cpanel creates a new website (vhost), they just label it differently.

    This cant work. Please search the forum, I explained why thats the case in a lot of posts already. When one of your sites get hacked the first time, then you will see why a decent security concept and site separation is a good idea.
  8. H2SO4

    H2SO4 New Member

    Why cant you guys do the same as cpanel?
    I ask this because if i want to sell a hosting package with 5 domains and unlimited subdomains, i cant.
    When the customer have 5 main domains already, then cant make a new site for subdomains.

    domain1.tld 1/5
    domain2.tld 2/5 sub.domain2.tld it is only a redirect to domain2.tld/subdir but not subdomain
    domain3.tld 3/5
    domain4.tld 4/5
    domain5.tld 5/5
    sub.domain2.tld 6/5 error, there is no more website available.

    So the package failed because i can give unlimited redirect only instead subdomain.
    Cant understand why dont you guys see the problem with this solution. :(
  9. RioSif

    RioSif Member

    Yes please! Do something for that! Or just give the choice! I want the choice to manage my security too, with the ftps. I want the choice to have one ftp account for all subdomains or one for each!

Share This Page