Subdomains setup

Discussion in 'General' started by Balthazar, Apr 4, 2007.

  1. Balthazar

    Balthazar New Member

    Is there anyway of setting up sub-domains so that they are in subfolders of the main web root, but come up with addresses that match

    Let me be clear about what I want.... My main site is for example

    In ISPConfig I create a site for with a co-domain of, and at my DNS host (not ISPConfig) I have an A record for and a CNAME for pointing to

    I now want several subdomains, let us say:, and They will all have different content and content that is different from, BUT they need to use the same CMS and share an MySQL database in order to share users and possibly forums.

    The way I have been trying to do this is to create subfolders to the main document root for each sub-domain, so that the "web" folder has subfolders called sub1, sub2 and sub3, and then create co-domains in ISPConfig under the site called sub1, sub2 and sub3, that each forward to the folders above. I then have individual A records at my DNS host for each subsite all pointing to the same IP.

    This more or less works, except for one thing - the address in the browser will show up as instead of even though it is typed in as

    Now, I know it is possible to do this so that the address shows up correctly and with subfolders organized in the way described, but it may not be possible with ISPConfig.

    Has anybody managed to set this up with ISPConfig?
  2. edge

    edge Active Member Moderator

    You can do that with a .htaccess file. (not sure if that is the way you want to do it)
  3. till

    till Super Moderator Staff Member ISPConfig Developer

  4. Balthazar

    Balthazar New Member

    Perfect - works a treat, thank you very much.

Share This Page