Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    2

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

    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/mydomain.com/*.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. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

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

    Did you also run these commands?

    Code:
    /scripts/verify_vhost_includes
    /scripts/ensure_vhost_includes --all-users
    /scripts/rebuildhttpdconf
    /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.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. httpd.conf virtual hosts only includes std config settings not ssl
    By mobcdi in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-10-2011, 12:46 PM
  2. httpd.conf showing deleted virtual hosts
    By learner in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-29-2009, 07:58 AM
  3. Custom virtualhosts includes for httpd won't take
    By knipper in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-18-2009, 06:16 PM
  4. New accounts are not being created with the ScriptAlias directive in httpd.conf
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 08-08-2008, 03:08 AM
  5. error log directive in httpd.conf
    By labeach in forum New User Questions
    Replies: 0
    Last Post: 01-05-2008, 02:52 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube