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!

Custom include applying to all virtualhosts

Discussion in 'General Discussion' started by morefx, Jul 26, 2013.

  1. morefx

    morefx Registered

    Joined:
    Jun 14, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I am looking for a convenient way to include some custom Apache RewriteRules to all (existing and newly created) virtualhosts.

    In stead of including the rules in /usr/local/apache/conf/userdata/std/2/ for every account, I'd rather have a single location to manage the rules which apply to all virtualhosts.

    What's the cPanel way of doing this (e.g. being compatible with /scripts/rebuildhttpdconf)?

    Regards
    Chris
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,183
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. morefx

    morefx Registered

    Joined:
    Jun 14, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Perfect!
    Thx! Chris
     
Loading...

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