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.

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:
    569
    Likes Received:
    15
    Trophy Points:
    18
    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.
     
Loading...

Share This Page