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!

Add command lines for all virtualhosts in httpd.conf

Discussion in 'General Discussion' started by mehrdad abed, Jul 6, 2009.

  1. mehrdad abed

    mehrdad abed Well-Known Member

    Mar 18, 2006
    Likes Received:
    Trophy Points:

    I installed cband module for apache2 and now want to add some commands for all virtualhosts in httpd.conf, I added some lines in /usr/local/cpanel/etc/httptemplates/apache/apache2_2/default and ran /scripts/rebuildhttpdconf to rebuild the httpd.conf but the changes were not applied,

    I suppose /etc/httptemplates/apache/apache2_2/default is used when a new account is created and rebuildhttpdconf doesnt use it to create new httpd.conf

    does anybody have an idea how to do that ?


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