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!

Why doesn't my custom virtual directive includes appear in the httpd.conf?

Discussion in 'General Discussion' started by robertnorris, Apr 23, 2011.

  1. robertnorris

    robertnorris Registered

    Apr 23, 2011
    Likes Received:
    Trophy Points:
    hi there,

    I followed the instructions at Changes Contained within a VirtualHost Directive

    and thought I'd try including a custom file for all virtual hosts by putting custom.conf in the folder for all VirtualHost containers: /usr/local/apache/conf/userdata/$includename.conf

    Restart httpd. No difference to the httpd.conf.

    So I thought I'd try my luck by doing one specifically for an addon domain.

    I copied the address from the httpd.conf ie /usr/local/apache/conf/userdata/std/2/myuser/*.conf

    I uncommented this line also.

    Restart httpd. No difference to the httpd.conf file..

    What am I missing? I've done this before on a different server using cpanel. Do I have to enable something somewhere to include custom conf files?
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst Staff Member

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Did you also run these commands?

    /scripts/ensure_vhost_includes --all-users
    /etc/init.d/httpd restart
    If not, you do need to have the "/scripts/ensure_vhost_includes --all-users" command processed before restarting Apache, since it's a requirement to add the include into the httpd.conf file using that command.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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