The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

NameVirtualHost for all IP's ?

Discussion in 'General Discussion' started by badzilla, Oct 22, 2010.

  1. badzilla

    badzilla Member

    Joined:
    Mar 3, 2008
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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?
     
  3. badzilla

    badzilla Member

    Joined:
    Mar 3, 2008
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...
Similar Threads - NameVirtualHost IP's
  1. keat63
    Replies:
    7
    Views:
    456
  2. zyrcon
    Replies:
    3
    Views:
    297
  3. tloosle
    Replies:
    13
    Views:
    1,188

Share This Page