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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache Reads https virtual host but not http

Discussion in 'EasyApache' started by Afzaal Afridi, Sep 8, 2017.

  1. Afzaal Afridi

    Afzaal Afridi Registered

    Joined:
    Sep 8, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Islamabad
    cPanel Access Level:
    Root Administrator
    I am having another issue , corresponding to previous post . This issue is that :

    Apache ignores any change in /etc/apache/conf.d/userdata/std/2_4/$example.com/*.conf

    but reads all instructions from /ssl/2_4/$example.com/*.conf

    This has enabled openproject to work on
    Code:
    https://example.com
    BUT
    Code:
    http://example.com
    still says "/" path not found , which i think is because its still reading old document root that doesnt exist anymore. The httpd.conf file however does show the changes i have made
     
    #1 Afzaal Afridi, Sep 8, 2017
    Last edited by a moderator: Sep 8, 2017
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    562
    Likes Received:
    40
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi,
    Try to rebuild apache conf file using following command. First you have to take a backup your httpd.conf file before run following script.
    Code:
    /scripts/rebuildhttpdconf
    
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Ensure you place the include file in the correct path. EX:

    Code:
    /etc/apache2/conf.d/userdata/std/2_4/user/domain/includename.conf
    Also, remember to run the following command after making changes:

    Code:
    /usr/local/cpanel/scripts/ensure_vhost_includes --all-users
    Thank you.
     
Loading...

Share This Page