Ticket #2091: use_prefix.patch

File use_prefix.patch, 2.1 KB (added by aseques, 2 years ago)
  • gui/domain_default_page/index.html

     
    9898               <div id="center"> 
    9999                       <div id="content"> 
    100100                               <p>This is the default page for <b>{DOMAIN_NAME}</b>. This page was generated automatically via ispCP Omega. Please upload your own index.html file.</p> 
    101                                <p>If you are the Administrator of this domain, please login <a href="http://{BASE_SERVER_VHOST}" class="link">here</a>.</p> 
     101                               <p>If you are the Administrator of this domain, please login <a href="{BASE_SERVER_VHOST_PREFIX}{BASE_SERVER_VHOST}" class="link">here</a>.</p> 
    102102                               <p class="login">Powered by <a class="link" href="http://www.isp-control.net" title="ispCP Omega Homepage">ispCP Omega</a></p> 
    103103                       </div> 
    104104               </div> 
  • engine/ispcp-dmn-mngr

     
    16521652 
    16531653               my ($index_tpl, $err_cfg_dir) = (undef, undef); 
    16541654               my $vhost = $main::cfg{'BASE_SERVER_VHOST'}; 
     1655                my $prefix = $main::cfg{'BASE_SERVER_VHOST_PREFIX'}; 
    16551656               $err_cfg_dir = "$main::cfg{'GUI_ROOT_DIR'}/domain_default_page"; 
    16561657               ($rs, $index_tpl) = get_tpl($err_cfg_dir, 'index.html'); 
    16571658               return $rs if ($rs != 0); 
     
    16591660               my $decoded_dmn_name = idn_to_unicode($dmn_name, 'utf-8'); 
    16601661               my %tag_hash = ( 
    16611662                       '{DOMAIN_NAME}' => $decoded_dmn_name, 
    1662                        '{BASE_SERVER_VHOST}' => $vhost 
     1663                       '{BASE_SERVER_VHOST}' => $vhost, 
     1664                       '{BASE_SERVER_VHOST_PREFIX}' => $prefix 
    16631665               ); 
    16641666               ($rs, $cfg) = prep_tpl(\%tag_hash, $index_tpl); 
    16651667               return $rs if ($rs != 0);