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!

Include in VirtualHost disappearing after rebuilding httpd config

Discussion in 'General Discussion' started by jonbofh, Jul 13, 2014.

  1. jonbofh

    jonbofh Registered

    Joined:
    Feb 25, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hi,

    I have a client who has a JSP servlet instance, and we have an Include in his VirtualHost file that maps the requests

    Include "/usr/local/apache/conf/userdata/std/2/custom/customerexample.com/*.conf"


    It seems that even though after modifying /usr/local/apache/conf/httpd.conf to ensure this is there,

    then running /usr/local/cpanel/bin/apache_conf_distiller --update

    It ends up some how disappearing.

    I've also tried
    /scripts/ensure_vhost_includes --user=customer
    and
    /scripts/ensure_vhost_includes --domain=customerexample.com

    But they actually just seem to break it altogether, so I'm obviously not doing something right.

    Any help would be greatly appreciated.

    Many thanks
     
  2. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    575
    Likes Received:
    20
    Trophy Points:
    143
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You created the directory structure under /usr/local/apache/conf ??

    userdata/std/2/custom/customerexample.com/

    And inside that directory you placed your custom.conf file??

    Then a rebuild should not remove that line, it should be commented until you add the custom file and then re-running /scripts/buildhttpdconf should uncomment the line. But it should not disappear.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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