Difference between revisions of "Zpanel VirtualHost"
From MS Computech
(@) |
(No difference)
|
Revision as of 18:11, 28 May 2014
Virtual host Zpanel Centos 6.5
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