[quote:a6ab217312][i:a6ab217312]Originally posted by itf[/i:a6ab217312]
[quote:a6ab217312][i:a6ab217312]Originally posted by DWHS.net[/i:a6ab217312]
I think I said this wrong.
In my apache file I have several stray ones.
Oviously the ones connected to a account need to stay but what about the ones in between the actual accounts.
there are about 50 just sitting there why?
Can get rid of these, I also think this what teels the bandwidth monitor that cancelled accounts are still there.
Any help is great thank you,
Charles[/quote:a6ab217312]
You can remove any commented out NameVirtualHost, in other words you can remove any NameVirtualHost which has a [b:a6ab217312]#[/b:a6ab217312] in front of it like this:
[b:a6ab217312]#NameVirtualHost xxx.250.xxx.xxx:80[/b:a6ab217312]
but you [b:a6ab217312]cannot[/b:a6ab217312] remove any NameVirtualHost
If you offer name based hosting (name-based virtual hosts should be used) a NameVirtualHost directive must appear with the IP address set to be used for the name-based virtualhosts. In other words, you must have the IP address that holds the hostname aliases (CNAMEs) for your name-based virtualhosts via a NameVirtualHost directive in your configuration file. (httpd.conf)
[b:a6ab217312]Multiple NameVirtualHost directives can be used each with a set of VirtualHost directives but only one NameVirtualHost directive should be used for each specific IP : port pair.[/b:a6ab217312]
Unless a NameVirtualHost directive is used for a specific IP address the first virtualhost with that address is treated as an IP-based virtualhost. (IP based account)[/quote:a6ab217312]
As you removed IP addresses I cannot recommend which one can be removed, read my post carefully,
However, let me show you an easier way:
restart your apache and check the errors
if you found like this line in the errors
[b:a6ab217312] [warn] NameVirtualHost 10.20.30.40:80 has no VirtualHosts[/b:a6ab217312]
then you can modify httpd.conf this way:
You [b:a6ab217312]must[/b:a6ab217312] keep one of
[b:a6ab217312]NameVirtualHost 10.20.30.40:80[/b:a6ab217312]
lines and remove its duplicates but you have not to remove any other NameVirtualHost directive
This directive is necessary as I explained for name based hosting
If there isn't such error you should not remove any NameVirtualHost line.