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.

Web Template - IPv6

Discussion in 'General Discussion' started by ianvanwijk, Mar 12, 2016.

  1. ianvanwijk

    ianvanwijk Registered

    Joined:
    Mar 12, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Netherlands
    cPanel Access Level:
    Root Administrator
    Hello,

    I have a problem with my cPanel Web Template page. Once I assign an IPv6 to a account and access a url that points to the server, I get an List of a random user's public_html directory instead of the default "SORRY!" screen. Once I disable IPv6 it works fine or access the website via IPv4.

    I think the problem is somewhere in the apache configuration files. Is this a known problem and how can I fix it?

    Regards,
    Ian
     
  2. ianvanwijk

    ianvanwijk Registered

    Joined:
    Mar 12, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Netherlands
    cPanel Access Level:
    Root Administrator
    I should probably add the domain is not hosted on the server..

    Regards,
    Ian
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  4. ianvanwijk

    ianvanwijk Registered

    Joined:
    Mar 12, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Netherlands
    cPanel Access Level:
    Root Administrator
    Here is the response from the Support Team:

    The reason behind the occurrence of the reported issue was that the IPv6 Shared IP was missing from the default vhost configuration in httpd.conf:

    Code:
    <VirtualHost <SERVER_IPV4>:80>
      ServerName <SERVER_IPV4>
      DocumentRoot /usr/local/apache/htdocs
      ServerAdmin <SERVERADMIN@EMAIL.COM>
      <IfModule mod_suphp.c>
      suPHP_UserGroup nobody nobody
      </IfModule>
    </VirtualHost>
    In order to fix the issue, I added the IPv6 vhost below
    Code:
    <VirtualHost [<SERVER_IPv6>]:80>
      ServerName <SERVER_IPv6>
      DocumentRoot /usr/local/apache/htdocs
      ServerAdmin <SERVERADMIN@EMAIL.COM>
      <IfModule mod_suphp.c>
      suPHP_UserGroup nobody nobody
      </IfModule>
    </VirtualHost>
    to: /usr/local/apache/conf/includes/pre_virtualhost_2.conf

    And then restarted Apache.
     
Loading...

Share This Page