Include in VirtualHost disappearing after rebuilding httpd config
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
-
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. 0
Please sign in to leave a comment.
Comments
1 comment