I am trying to set up a sub-domain off my main domain name. The main domain is pointing to my dedicated server without any problems. It is set up like this:
NameVirtualHost *
<VirtualHost 209.58.581.1>
DocumentRoot /home/login/public_html
ServerName domain.com.com
ErrorLog /home/login/logs/error_log
CustomLog /home/login/logs/access_log combined
ServerAdmin
admin@domain.com
ServerAlias domain.com
AddHandler cgi-script .cgi
AddHandler perl-script .pl
UseCanonicalName off
</VirtualHost>
Here is what I entered beneath it in the httpd.conf file:
<VirtualHost statistics.domain.com>
ServerName statistics.domain.com
</VirtualHost>
What am I doing wrong? I want to make sure the sub-domain stats in the address bar the entire time.
Also, what is exactly is the difference between setting UseCanonicalName to on and off? What is a Canonical Domain?