Difference between revisions of "Zpanel VirtualHost"
From MS Computech
(@) |
|||
Line 1: | Line 1: | ||
− | Virtual host Zpanel Centos 6.5 | + | '''Virtual host Zpanel Centos 6.5'''--[[User:Snifer|Snifer]] 18:11, 28 May 2014 (ICT) |
1.edit /etc/zpanel/configs/apache/httpd-vhosts.conf | 1.edit /etc/zpanel/configs/apache/httpd-vhosts.conf |
Revision as of 18:11, 28 May 2014
Virtual host Zpanel Centos 6.5--Snifer 18:11, 28 May 2014 (ICT)
1.edit /etc/zpanel/configs/apache/httpd-vhosts.conf
nano /etc/zpanel/configs/apache/httpd-vhosts.conf
2.Put below config in to the file.
########## # ZPanel # ########## #NameVirtualHost *:80 # Configuration for ZPanel control panel. <VirtualHost *:80> ServerAdmin zadmin@localhost DocumentRoot "/etc/zpanel/panel/" ServerName zpanelx.yourdomainname.com ServerAlias *.zpanelx.yourdomainname.com AddType application/x-httpd-php .php <Directory "/etc/zpanel/panel/"> Options FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> # Custom settings are loaded below this line (if any exist) </VirtualHost> ######################## ######## Webmail######## ######################## #NameVirtualHost *:80 # Configuration for ZPanel control panel. <VirtualHost *:80> ServerAdmin zadmin@localhost DocumentRoot "/etc/zpanel/panel/etc/apps/webmail/" ServerName webmail.yourdomainname.com ServerAlias *.webmail.yourdomainname.com AddType application/x-httpd-php .php <Directory "/etc/zpanel/panel/etc/apps/webmail"> Options FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> # Custom settings are loaded below this line (if any exist) </VirtualHost> ############################## ####### PHPMyadmin ########### ############################## #NameVirtualHost *:80 # Configuration for ZPanel control panel. <VirtualHost *:80> ServerAdmin zadmin@localhost DocumentRoot "/etc/zpanel/panel/etc/apps/phpmyadmin/" ServerName mysql.yourdomainname.com ServerAlias *.mysql.yourdomainname.com AddType application/x-httpd-php .php <Directory "/etc/zpanel/panel/etc/apps/phpmyadmin"> Options FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> # Custom settings are loaded below this line (if any exist) </VirtualHost> ############ END Virtual HOST ##############
3. Change DNS Record point to
webmail.yourdomainname.com mysql.yourdomainname.com zpanelx.yourdomainname.com