Can't multil domain

Discussion in 'General' started by oranix, Aug 24, 2009.

  1. oranix

    oranix New Member

    I've two domain and host
    exam: domain1.tld point to the folder /www/var/web2/web
    now, i want too , domain2.tld point to the folder /www/var/web2/web
    i don't want forward. :(
    Please help me!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Just add domain2.tld as co-domain.
     
  3. oranix

    oranix New Member

    i added domain2.tld as co-domain and forward is default
    but when i checked domain2.tld then it only print "..."
    i don't understand
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's in your Vhosts_ispconfig.conf?
     
  5. oranix

    oranix New Member

    my Vhosts_ispconfig.conf
    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 96.x.x.x:80
    <VirtualHost 96.x.x.x:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
      <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]
      </IfModule>
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.ddomain1.com.vn:80
    ######################################
    #
    #
    <VirtualHost 96.x.x.x:80>
    SuexecUserGroup web3_ftp_domain1 web3
    ServerName www.domain1.com.vn:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web3/web
    ServerAlias domain1.com.vn domain2.com.vn www.domain2.com.vn
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web3/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode Off
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
    AddType text/vnd.wap.wml .wml
    AddType text/vnd.wap.wmlscript .ws .wmlscript
    AddType image/vnd.wap.wbmp .wbmp
    Alias /error/ "/var/www/web3/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
    <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
      RewriteRule .* - [F]
    </IfModule>
    <IfModule mod_dav.c>
           Alias /webdav /var/www/web3/web
            <Location /webdav>
               DAV On
               AuthType Basic
               AuthName "webdav"
               AuthUserFile /var/www/web3/passwd.dav
               Require valid-user
           </Location>
    </IfModule>
    </VirtualHost>
    
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Looks ok. Is there a configuration for domain2.tld somewhere else in your Apache configuration?
     
  7. oranix

    oranix New Member

    i checked and found in folder /var/www
    Code:
    lrwxrwxrwx 1 root                root   13 Jul 27 03:14 www.doamin1.com.vn -> /var/www/web3
    
    and i don't found domain2.com.vn
     
  8. falko

    falko Super Moderator Howtoforge Staff

    That's ok because domain2.com.vn is a Co-Domain of the domain1.com.vn web site.

    Did you maybe manually modify your Apache configuration? Is domain2.com.vn mentionend somewhere in the other Apache configuration files?
     
  9. lrvv

    lrvv New Member

    serveralias,you can try it by this!
     
  10. epdmcoatings

    epdmcoatings New Member

    Its not a big issue, you can simply make another domain with the name of co-domain and sub domain, you can make another directory in it, with the different name, i hope from this way you can solve your problem and also let me know about the results.
     

Share This Page