Panel in a subdomain

  • Okay i solve this i'm set 00_master.conf to:


    Code
    1. # i-MSCP a internet Multi Server Control Panel## Copyright (C) 2006-2010 by isp Control Panel - http://ispcp.net# Copyright (C) 2010-2012 by internet Multi Server Control Panel - http://i-mscp.net## Version: $Id$## The contents of this file are subject to the Mozilla Public License# Version 1.1 (the "License"); you may not use this file except in# compliance with the License. You may obtain a copy of the License at# http://www.mozilla.org/MPL/## Software distributed under the License is distributed on an "AS IS"# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the# License for the specific language governing rights and limitations# under the License.## The Original Code is "ispCP ω (OMEGA) a Virtual Hosting Control Panel".## The Initial Developer of the Original Code is ispCP Team.# Portions created by Initial Developer are Copyright (C) 2006-2010 by# isp Control Panel. All Rights Reserved.## Portions created by the i-MSCP Team are Copyright (C) 2010-2012 by# internet Multi Server Control Panel. All Rights Reserved.## The i-MSCP Home Page is:## http://i-mscp.net#<VirtualHost *:80> ServerName www.example.com ServerAlias example.com DocumentRoot /var/www/virtual/default</VirtualHost><VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/imscp/gui/public ServerName panel.example.com ServerAlias panel.example.com Alias /errors /var/www/imscp/gui/public/errordocs/ ErrorDocument 401 /errors/401.html ErrorDocument 403 /errors/403.html ErrorDocument 404 /errors/404.html ErrorDocument 500 /errors/500.html ErrorDocument 503 /errors/503.html Alias /pma /var/www/imscp/gui/public/tools/pma/ Alias /webmail /var/www/imscp/gui/public/tools/webmail/ Alias /ftp /var/www/imscp/gui/public/tools/filemanager/ Alias /ispLogos /var/www/imscp/gui/data/ispLogos SuexecUserGroup vu2000 vu2000 <Directory /var/www/imscp/gui/public> Options -Indexes Includes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> <Location /ispLogos> Options -Indexes Order allow,deny Allow from all </Location> <IfModule mod_fcgid.c> <Directory /var/www/imscp/gui/public> FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php Options +ExecCGI </Directory> <Directory "/var/www/fcgi/master"> AllowOverride None Options +ExecCGI MultiViews -Indexes Order allow,deny Allow from all </Directory> </IfModule> <IfModule mod_fastcgi.c> ScriptAlias /php5/ /var/www/fcgi/master/ <Directory "/var/www/fcgi/master"> AllowOverride None Options +ExecCGI MultiViews -Indexes Order allow,deny Allow from all </Directory> </IfModule></VirtualHost>


    And add to httpd.conf


    Code
    1. NameVirtualHost *:80


    restart apache and works.


    //Edit:


    Whoops i forget:


    You must also edit files in /etc/imscp/apache/parts


    Find:

    Code
    1. <VirtualHost {DMN_IP}:80>


    Replace with:

    Code
    1. <VirtualHost *:80>

    Edited once, last by Worlther ().