odd virtual hosting issue w/ apache

Hi,

I'm having this weird problem with apache. For many months now, i have been adding and hosting subdomains for people through apache. so for the last year or so, ive had about 100+ subdomains, all ran off the same IP.

so say i have 100 subdomains that dns to: 207.218.219.64
in my httpd.conf i'd have:

NameVirtualHost 207.218.219.64

then i'd have a hundred of these:


<VirtualHost 207.218.219.64:80>
User username
Group password
ServerName someurl.nrgservers.net
ServerAdmin info@red.net
DocumentRoot /home/sites/someurl.nrgservers.net/public_html
ScriptAlias /cgi-bin/ /home/sites/someurl.nrgservers.net/public_html/cgi-bin/
ErrorLog /usr/local/apache/logs/someurl.nrgservers.net-error_log
CustomLog /usr/local/apache/logs/someurl.nrgservers.net-access_log combined
</VirtualHost>

All of them are working fine. However, the other day when I went to go add a new one, it didnt work right. and the thing is, i haven't changed the way i set it up. It isn't setup any differently then any of the other 100 entries.

they are all setup the exact same way.....

the new one that i added is having a weird problem where when you type in the url (Servername) it'll re-direct to the very first entry..

so the very first vhost entry i have for 207.218.219.64 is what the latest vhost entry i setup goes to..

so when i type in the url http://stealth.nrgservers.net

it'll re-direct to http://helpdesk.nrgservers.net instead..

both sites dns to 207.218.219.64
helpdesk.nrgservers.net is the very first entry in httpd.conf that uses the ip 207.218.219.64

Does anyone know why this is happening? Why is it that all of the sudden out of no where any new entries i add into httpd.conf just go to http://helpdesk.nrgservers.net instead..

Logs indicate nothing that is of any help.. i can't seem to figure this one out..

Any help would be greatly appreciated.

 

 

 

 

Top