Trying to get VirtualDoumentHost to work...

this is what I have in my httpd.conf

<VirtualHost IPADDRESSHERE>
ServerAlias www.DOMAINNAMEHERE DOMAINNAMEHERE
ServerAdmin webmaster@DOMAINNAMEHERE
DocumentRoot /home/USERNAMEHERE/public_html
BytesLog domlogs/DOMAINNAMEHERE-bytes_log
ServerName www.DOMAINNAMEHERE
User USERNAMEHERE
Group USERNAMEHERE
CustomLog domlogs/DOMAINNAMEHERE combined
ScriptAlias /cgi-bin/ /home/USERNAMEHERE/public_html/cgi-bin/
</VirtualHost>

<VirtualHost IPADDRESSHERE>
UseCanonicalName Off
ServerAlias *.DOMAINNAMEHERE
ServerAdmin webmaster@DOMAINNAMEHERE
VirtualDocumentRoot /home/USERNAMEHERE/public_html/~subdomains/%1
BytesLog domlogs/DOMAINNAMEHERE-bytes_log
User USERNAMEHERE
Group USERNAMEHERE
CustomLog domlogs/DOMAINNAMEHERE combined
ScriptAlias /cgi-bin/ /home/USERNAMEHERE/public_html/cgi-bin/
</VirtualHost>


And in my /var/named/MYDOMAIN.COM.DB file I have that sites' NEW ip address, and TTL is 3600.

I changed the site's ip in named, increased the serial by 1, restarted named and apache, and when I go to a url that resolves to the NEW ip address, I get a 509 error BANDWIDTH EXCEEDED, please try again later..

lol, why do I get this error? I change the ip's back to the normal or MAIN server ip address and everything works perfectly, but when I try to use the new ip, EVEN AFTER resolving, it gives me a bandwidth 509 error, any ideas? I have no bandwidth limits on any of the accounts on my cpanel server.

Thanks...

 

 

 

 

Top