Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    43,870
    Likes Received:
    1,811
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice