DNS Zone - CNAME Problem

Discussion in 'Installation/Configuration' started by DKLeader, Oct 6, 2010.

  1. DKLeader

    DKLeader New Member

    Hi,

    Got a small problem in my DNS Zones.
    If I try to access my domains with www in front it then returns with the wrong page.
    Ex 24-timerssejlads.dk and www.24-timerssejlads.dk

    In pri.24-timerssejlads.dk :
    The outcome of dig :
    The funny part about this is that using my old hosting system I had no problems and the zone looked like this :
    I know that "A" record is refering to .66 in the old and .69 in the new - but that is a change after running multiservers.

    Furthermore : why does ISPConfig not add the "IN" (INternet) to the zone - and how can I get it to do that?
    Also how do I get the zone template to add? :
    // DKLeader
     
  2. Ghostdare

    Ghostdare Member

    Seems that your problem is not enymore.... i've access your link and it's looks fine to me.
     
  3. DKLeader

    DKLeader New Member

  4. falko

    falko Super Moderator ISPConfig Developer

    Can you post the vhost configuration of 24-timerssejlads.dk?
    What did you select in the Auto-Subdomain field of the web site in ISPConfig?
     
  5. DKLeader

    DKLeader New Member

    The Auto-Subdomain was left at none. Should that be www. or *.? Thought that was handled by the zone.

    The vhost :
    Code:
    <Directory /var/www/24-timerssejlads.dk>
        AllowOverride None
        Order Deny,Allow
        Deny from all
    </Directory>
    
    <VirtualHost *:80>
          DocumentRoot /var/www/24-timerssejlads.dk/web
    
        ServerName 24-timerssejlads.dk
        ServerAdmin [email protected]
    
        ErrorLog /var/log/ispconfig/httpd/24-timerssejlads.dk/error.log
    
        ErrorDocument 400 /error/400.html
        ErrorDocument 401 /error/401.html
        ErrorDocument 403 /error/403.html
        ErrorDocument 404 /error/404.html
        ErrorDocument 405 /error/405.html
        ErrorDocument 500 /error/500.html
        ErrorDocument 503 /error/503.html
    
        <Directory /var/www/24-timerssejlads.dk/web>
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
        <Directory /var/www/clients/client1/web16/web>
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    
        # Clear PHP settings of this website
        <FilesMatch "\.ph(p3?|tml)$">
            SetHandler None
        </FilesMatch>
        # php as fast-cgi enabled
        <IfModule mod_fcgid.c>
          # SocketPath /tmp/fcgid_sock/
          IdleTimeout 3600
          ProcessLifeTime 7200
          # MaxProcessCount 1000
          DefaultMinClassProcessCount 3
          DefaultMaxClassProcessCount 100
          IPCConnectTimeout 8
           IPCCommTimeout 360
          BusyTimeout 300
        </IfModule>
        <Directory /var/www/24-timerssejlads.dk/web>
            AddHandler fcgid-script .php .php3 .php4 .php5
            FCGIWrapper /var/www/php-fcgi-scripts/web16/.php-fcgi-starter .php
            Options +ExecCGI
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
            <Directory /var/www/clients/client1/web16/web>
            AddHandler fcgid-script .php .php3 .php4 .php5
            FCGIWrapper /var/www/php-fcgi-scripts/web16/.php-fcgi-starter .php
            Options +ExecCGI
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    
        # add support for apache mpm_itk
        <IfModule mpm_itk_module>
          AssignUserId web16 client1
        </IfModule>
    
    
    </VirtualHost>
    
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Websites and zones are independant from each other. A dns zone has no influence on how apache handles the virtual host. If a specific subdomain shall be assigned to a website, then it has to exist in the dns zone and in the apache configuration. So if you want to assign the subdomain www to a website, then select auto subdomain www in the website settings and create a dns a- or cname record for the www subdomain in the dns zone.
     
  7. DKLeader

    DKLeader New Member

    [Solved]

    Guess that solved this one. Should have seen that myself :eek:

    Thanks for the help. :)

    But never got an answer on this

    Furthermore : why does ISPConfig not add the "IN" (INternet) to the zone - and how can I get it to do that?
    Also how do I get the zone template to add? :

    // DKLeader


    DKLeader
     
    Last edited: Oct 8, 2010

Share This Page