• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Help with DNS PLease

nigelwong

New Member
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.)
 
Your BIND seems confirgured correctly.

For Apache, i think it should be

<VirtualHost (IP)>

Just try and see :)
 
Yeah currently thats what i'm doing. But it redirects incorrently =(... also, i host my own server so i need abit of help.
 
Can you post your VirtualHost section from httpd.conf ?

Did you restarted Apache after changing httpd.conf ?
 
Sorry i did have the *.xanblog.my3host.com, i didnt realize that i uploaded the original httpdconf file. It doesnt't work. It was thinking maybe i had to uncomment some settings. Btw, do you have MSN? If you do please add me on wong.nigel[at]gmail.com.
 
Back
Top