zpanel virtual domains

step 1 : create the subdomain in the control panel domain > sub-domain create ( then restart Apache server )
SSH command : sudo service apache2 restart

step 2: go to DNS manager , create record under A , for webmail ( you should wait for this to activate … luckily couple of hours https://www.whatsmydns.net use this site to check the reach)
step 3 : edit your virtual hosts ,

SSH Command : vi /etc/zpanel/configs/apache/httpd-vhosts.conf

# DOMAIN: webmail.my-domain.com
<virtualhost *:80>
ServerName webmail.my-domain.com
ServerAlias webmail.my-domain.com
ServerAdmin zadmin@localhost
DocumentRoot "/etc/zpanel/panel/etc/apps/webmail"
 
</virtualhost>
 
# END DOMAIN: webmail.my-domain.com


now restart Apache again. 
 

No comments:

Post a Comment