badzilla

Member
Mar 3, 2008
19
0
51
I have 6 IP's and one of them is used as name-based virtualhost. I believe it is defined somewhere in WHM.

However, in my httpd.conf it list ALL my IP's as NameVirtualHost, like this

NameVirtualHost ip1:80
NameVirtualHost ip2:80
NameVirtualHost ip3:80
...
NameVirtualHost *

Question is, is this wrong and can it be fixed, because altering the httpd.conf and running the distiller is not helping.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Any IP used to an account needs to have a NameVirtualHost entry for that IP to work in Apache configuration for the domain using it (the NameVirtualHost entry must precede the domain's VirtualHost entry), so why do you believe this might be wrong? Is the entry for the other IPs causing an issue in some way?
 

badzilla

Member
Mar 3, 2008
19
0
51
From the documentation and examples at apache webpage. It is my understanding that NameVirtualHost should only be used for the ip's that uses namebased vhosts and not IP-based vhosts.

Sorry if I got it wrong.