If your not using a control panel you will just have to add a virtualhost to your apache configuration file for the sub domain. Here is an example below:
<VirtualHost xx.xx.xxx.xxx:80>
ServerAdmin webmaster@chat.abc.com
DocumentRoot /path/to/chat.abc.com/
ServerName chat.abc.com
ErrorLog /var/www2/logs/chat.abc.com_error_log
CustomLog /var/www2/logs/chat.abc.com_access_log common
<Directory /path/to/chat.abc.com/cgi-bin/>
Options +ExecCGI
AddHandler cgi-script cgi pl
</Directory>
</VirtualHost>
Now you just restart apache and modify the DNS. In your DNS zone for 'abc.com' just create an 'A' record called 'chat' pointing to the IP of the server hosting chat.abc.com.
|