Okay my account is setup in cPanel. cPanel automatically creates VirtualHosts for you. Looking at the httpdconf file, i see this:
<VirtualHost 128.121.20.245>
ServerAlias xanblog.my3host.com
ServerAdmin webmaster@xanblog.my3host.com
DocumentRoot /home/nigel/public_html
BytesLog domlogs/xanblog.my3host.com-bytes_log
ServerName www.xanblog.my3host.com
User nigel
Group nigel
CustomLog /usr/local/apache/domlogs/xanblog.my3host.com combined
ScriptAlias /cgi-bin/ /home/nigel/public_html/cgi-bin/
</VirtualHost>
Now, i have also configured BIND to *.xanblog.my3host.com. IN A 128.121.20.245 <--- Do i need to do this step?
By reading other posts, i think i'm supposed to add:
<VirtualHost *>
ServerAlias *.xanblog.my3host.com
ServerAdmin webmaster@xanblog.my3host.com
DocumentRoot /home/nigel/public_html
BytesLog domlogs/xanblog.my3host.com-bytes_log
ServerName www.xanblog.my3host.com
User nigel
Group nigel
CustomLog /usr/local/apache/domlogs/xanblog.my3host.com combined
ScriptAlias /cgi-bin/ /home/nigel/public_html/cgi-bin/
</VirtualHost>
Do i add the above, or replace the old VirtualHost given by cPanel. Also, i set my DNS up in the subdomain aswell.
So basically 2 questions:
1. Do i need to configure BIND, if so how?
2. Is it <VirtualHost *> or <VirtualHost (IP)>
Thankyou.
(Currently, it redirects my site to the IP which has another site installed onto the root of the IP.)
<VirtualHost 128.121.20.245>
ServerAlias xanblog.my3host.com
ServerAdmin webmaster@xanblog.my3host.com
DocumentRoot /home/nigel/public_html
BytesLog domlogs/xanblog.my3host.com-bytes_log
ServerName www.xanblog.my3host.com
User nigel
Group nigel
CustomLog /usr/local/apache/domlogs/xanblog.my3host.com combined
ScriptAlias /cgi-bin/ /home/nigel/public_html/cgi-bin/
</VirtualHost>
Now, i have also configured BIND to *.xanblog.my3host.com. IN A 128.121.20.245 <--- Do i need to do this step?
By reading other posts, i think i'm supposed to add:
<VirtualHost *>
ServerAlias *.xanblog.my3host.com
ServerAdmin webmaster@xanblog.my3host.com
DocumentRoot /home/nigel/public_html
BytesLog domlogs/xanblog.my3host.com-bytes_log
ServerName www.xanblog.my3host.com
User nigel
Group nigel
CustomLog /usr/local/apache/domlogs/xanblog.my3host.com combined
ScriptAlias /cgi-bin/ /home/nigel/public_html/cgi-bin/
</VirtualHost>
Do i add the above, or replace the old VirtualHost given by cPanel. Also, i set my DNS up in the subdomain aswell.
So basically 2 questions:
1. Do i need to configure BIND, if so how?
2. Is it <VirtualHost *> or <VirtualHost (IP)>
Thankyou.
(Currently, it redirects my site to the IP which has another site installed onto the root of the IP.)