Guideline to create the sub-domain using apache virtual host
Eg: mail.xyz.com that point to other document root /usr/share/horde



(1) Modify A/CNAME record in you domain NS server (or ask their administrator)
if NS server is used bind:

xyz.com. IN A 222.111.222.33 www IN CNAME xyz.com. mail IN CNAME xyz.com.



(2)

vi /etc/httpd/conf/httpd.conf NameVirtualHost *:80 NameVirtualHost *:443 <VirtualHost *:80 *:443> DocumentRoot /var/www/html </VirtualHost> <VirtualHost *:80> ServerName www.xyz.com ServerAlias xyz.com *.xyz.com DocumentRoot /var/www/html/xyz.com ErrorLog /var/log/httpd/xyz.com-error_log CustomLog /var/log/httpd/xyz.com-access_log combined </VirtualHost> <VirtualHost *:80 *:443> DocumentRoot /usr/share/horde ServerName mail.xyz.com </VirtualHost>



(3)

/etc/init.d/httpd restart


(4) Try see in web http://mail.xyz.com/


Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.