sub domain problem

Discussion in 'Installation/Configuration' started by chief, Nov 4, 2014.

  1. chief

    chief Member HowtoForge Supporter

    Hi,
    i am having an issue with creating a subdomain.

    I would like http://garage.tlsystems.co.uk
    step
    1. sites, sub domain and created
    host = garage
    domain = tlsystems.co.uk
    redirect = L
    path = /garage/ (which i have already created with content and viewable seperately)

    then i head for DNS and create an entry

    and i create a entry thus
    new CNAME record
    hostname = garage
    target hostname = tlsystems.co.uk
    ttl = 86400 (standard)
    active = yes

    when i try the address http://garage.tlsystems.co.uk it just shows me www.tlsystems.co.uk//

    whats going on?
    I can ping garage.tlsystems.co.uk,
    also, my dns is handled externally

    dave
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    When a subdomain shal have its own directory, then the recommended way is to add a new website for the subdomain. as alternative you can ad ist as vhost subdomain. using rewrites is possible but less optimal as rewrites will interfere with the .htaccess files of the main website and might result in strange problems.
     
  3. chief

    chief Member HowtoForge Supporter

    Hi till,
    thanks for the reply.

    I found the problem.
    i had enabled:

    domain > auto-subdomain = www.
    redirect > seo redirect = domain.tld => www.domain.tld

    so when i tried any subdomain it would automatically change garage.tlsystems.co.uk to www.tlsystems.co.uk//
    when i undid settings, it broke website

    I did this because i couldnt originally get www.tlsystems.co.uk, it kept changing to http://tlsystems.co.uk

    my cure was to buy tlsystems.uk and use that for subdomain's
    now it works
     
  4. pcurran

    pcurran Member

    Subdomain creation?

    hi Tim et All,
    You said: Recommended way to create a subdomain "host1.mydomain.com", is to create a new website?
    But in the new website's form, we can only select "www.", not write the host portion?

    Alternatively one may create the subdomain "host1.mydomain.com" manually as vhost/apache2 ?

    If above is true, how can we import the created vhost/subdomain informations to ISPconfig3?
    thank you.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess you have domain limits enabled on your server. On servers that have domain limits enabled, you have to add the subdomain in the domain list f the client first.

    If you like to do a mass import from another controlpanel, then you can do that with the ispconfig remote api.
     

Share This Page