Include in VirtualHost disappearing after rebuilding httpd config

jonbofh

Registered
Feb 25, 2014
3
0
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
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
585
25
153
cPanel Access Level
Root Administrator
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.