Subdomain problems

Discussion in 'Installation/Configuration' started by Kira, Nov 5, 2014.

  1. Kira

    Kira Member


    I have a domain "mydomain.tld" and wish to create a subdomain with it's own directory in /var/www/.

    According to the documentation, this can be done by setting up two websites in ISPConfig and NOT using the Subdomain feature:


    To make clear what I want, here's a list of hostnames and directories I want them to point into:

    http://mydomain.tld -> /var/www/mydomain.tld
    http://www.mydomain.tld -> /var/www/mydomain.tld
    http://something.mydomain.tld -> /var/www/mydomain.tld

    http://meow.mydomain.tld -> /var/www/meow.mydomain.tld
    http://something.meow.mydomain.tld -> /var/www/meow.mydomain.tld

    To achieve this, I did set the Auto-Subdomain of both websites to "*.".

    Unfortunately now meow.mydomain.tld doesn't work anymore.. when opening this in the browser, I am presented with an 404 error message about "/meow/ doesn't exist on this server".

    Any idea what I can do to make it work?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    thats easy, all you have to do is to create the website:

    mydomain.tld (with auto-subdomain www) and the website meow.mydomain.tld (with auto subdomain *). If you want to add additional subdmains to mydomain.tld, then you have to add them as subdomains to that site as you cant use auto subdomain * here, this would catch all requests for the meow website).

    take a look of the redirect tabs of the domains, you must have added a redirect /meow/ in either the domain or subdomain website. remove that redirect.
  3. Kira

    Kira Member

    Hmm.. if I do it like that it works, but.. if someone now goes to whatever.mydomain.tld he's presented the "It works!" default website.. can't I setup it like ".* should catch everything except my meow-subdomain"?

    My bad.. I forgot an old rewrite in my .htaccess.. :)
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, that works for meow.mydomain.tld but as far as I know you cant have a aut subdomain *.meow.mydomain.tld then in the site meow.mydomain.tld then.

Share This Page