Domain alias problem

Discussion in 'Installation/Configuration' started by aceyzeriat, May 7, 2008.

  1. aceyzeriat

    aceyzeriat New Member

    During the creation of a new domain I made a mistake
    The new domain name has been registered as an alias of another site
    and when I try to select the alias to delete it there is an error message claiming I don't have sufficient privilege even as admin.

    I tried to find in the ISP DB where that alias is recorded to erase it directly but I could not find it

    Does somenody know how to eliminate an alias ?

    regards
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Do you mean a Co-Domain when you speak of alias?
     
  3. aceyzeriat

    aceyzeriat New Member

    Hello Falko,

    I meen on the following image the first domain name is OK but the second (surrounded in red) is the domain name of another site and it should not be there
    Sorry it's in french

    [​IMG]

    When I click on it I get the following error :
    [​IMG]
    which means I have unsufficient priviledges rvrn as admin

    regards
     
    Last edited: May 9, 2008
  4. aceyzeriat

    aceyzeriat New Member

    Precision

    Here is a partial copy of my Vhost_ispconfig.conf green entries are correct, the red is incorrect.
    If I remove it brutally from this file it is just re-added by ISP_Config

    how to remove that red entry definitely ??

    thanks and regards

    ######################################
    # Vhost: www.domain1.com:80
    ######################################
    #
    #
    <VirtualHost 192.168.0.100:80>
    ServerName www.domain1.com:80
    ServerAdmin webmaster@domain1.com
    DocumentRoot /var/www/web21/web
    ServerAlias domain1.com domain2.com
    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/web21/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    Alias /error/ "/var/www/web21/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/web21/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web21/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    ######################################
    # Vhost: www.domain2.com:80
    ######################################
    #
    #
    <VirtualHost 192.168.0.100:80>
    ServerName www.domain2.com:80
    ServerAdmin webmaster@[COLOR="Lime"]domain2[/COLOR].com
    DocumentRoot /var/www/web24/web
    ServerAlias domain2.com
    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/web24/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode On
    php_admin_value open_basedir /var/www/web24/
    php_admin_value file_uploads 1
    php_admin_value upload_tmp_dir /var/www/web24/phptmp/
    php_admin_value session.save_path /var/www/web24/phptmp/
    Alias /error/ "/var/www/web24/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/web24/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web24/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
     
  5. falko

    falko Super Moderator ISPConfig Developer

    domain2.com seems to be linked incorrectly in the ISPConfig database. Please check the isp_isp_domains, isp_isp_web, isp_dep and isp_nodes tables...
     
  6. aceyzeriat

    aceyzeriat New Member

    Nope,

    Nothing particularly particular in those tables.
    domain1 and domain2 are never directly linked ...

    REAL PUZZLE !!
    :confused:
     
  7. aceyzeriat

    aceyzeriat New Member

    Hello,

    I tried to understand the mechanism of aliasing by creating fake alias for some of my domains but lost myself in the db_ispconfig.sql
    Actually I need to change the access right to that alias so I can just delete it through the GUI. When I click on the alias link in the list what parameter will determine my user right to the entry ?

    regards,
     

Share This Page