Apache2+Subdomain/Aliasdomain Problem

Discussion in 'Installation/Configuration' started by Overcrook, Sep 18, 2010.

  1. Overcrook

    Overcrook New Member

    Hi,
    I have a problem with my server.
    If I try to open a domain that shouldn't exist, I get the default page of apache2 instead of an error message.

    For example:

    my domain: example.com

    Now if I try to open the domain " asdasd.example.com " I get the default " It works " page. And I really don't know why.
    I think it's due to an incorrect setting in ISPconfig, but I don't know what I've misconfigured.

    Another huge problem is that if I ping the domain "qwe.example.com", or "yxc.example.com" I get a ping respond. Although under Site -> Websites this Domain doesn’t exist.

    I don't know if this is a security problem, but I really want to fix this issue. Asap.

    Thanks for the help.
     
    Last edited: Sep 18, 2010
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats the normal behavoiur of the apache webserver. Replace the default apache page with a page that shows the error message that you want to be displayed for non existing domains.

    Thast not directly related to the first issue as it has nothing to do with websites. The problem for that is that you have wrong DNS records. Do not create any wildcard dns records for your domain if you do not want that all subdomains of a given domain will show up as existing domains. Instead of a wildcard dns record, create only the A-Records for subdomains that you really use in the dns zones of your domains.
     
  3. Toucan

    Toucan New Member

    This is because of the DNS lookup process I believe. The name servers you have registered YOUR name server with know that example.com records are held on your server, but you server doesn't have records for asdas.example.com so it dumps you on the 'It Works' page. The same would happen if you registered another domain and showed the ns records pointing to your server - it would have no knowledge of that domain and dump you there again.
     
    Last edited: Sep 18, 2010
  4. Overcrook

    Overcrook New Member

    Thank you guys.

    Now I've replaced the default page.

    Okay, I understand. So the problem lies in the DNS settings.
    Unfortunately these are managed by the provider where I've registered the URL. Also they don't allow two Nameserver on the same IP.

    However thanks again.
     

Share This Page