Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default /scripts/ensure_vhost_includes --user=name - No longer works.

    Hi,

    I used to be able to add an include file for an individual account in the httpd.conf, and then lock it in with:

    /scripts/ensure_vhost_includes --user=(account user id)

    But these days the above command just removed the custom include line that I just inserted.

    In the individual vsite areas of the httpd.conf file, we have this:

    # DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.

    That's fine, but none of the include lines in the vsite area are account specific. So if I included, in this case, the mod_security exception rule needed for this particular site. This rule would apply to every account on the server, which is not what we need here:

    Include "/usr/local/apache/conf/userdata/*.conf"
    Include "/usr/local/apache/conf/userdata/*.owner-root"
    Include "/usr/local/apache/conf/userdata/std/*.conf"
    Include "/usr/local/apache/conf/userdata/std/*.owner-root"
    Include "/usr/local/apache/conf/userdata/std/2/*.conf"
    Include "/usr/local/apache/conf/userdata/std/2/*.owner-root"


    So how can I put up a custom include rule just for one particular vsite?

    Thanks much.

  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: /scripts/ensure_vhost_includes --user=name - No longer works.

    You would put it into /usr/local/apache/conf/userdata/std/2/username/*.conf location where [b]username[b] is the cPanel username *.conf is the name of the include file such as modsec.conf for example.

    The documentation on using these includes can be found at the following location:

    Changes Contained within a VirtualHost Directive
    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

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default Re: /scripts/ensure_vhost_includes --user=name - No longer works.

    Thanks but the problem is, you can't alter any of the existing includes, nor insert any new includes with "/username", if you do it's removed after running /scripts/ensure_vhost_includes --user=name

  4. #4
    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: /scripts/ensure_vhost_includes --user=name - No longer works.

    If the entry that it should be placing into httpd.conf (you don't manually place the entry into httpd.conf) is being removed on running the command, then please open up a ticket and post the ticket number here. I've never heard of this happening. You can open up a ticket in WHM > Support Center > Contact cPanel or using the link in my signature.
    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. /scripts/ensure_vhost_includes does not work
    By Datcrack in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-09-2010, 09:19 AM
  2. /scripts/ensure_vhost_includes no longer works?
    By jols in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-15-2010, 09:02 PM
  3. /scripts/ensure_vhost_includes not working
    By Azavia in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-08-2010, 02:40 AM
  4. /scripts/cpbackup --force no longer works?
    By kernow in forum Data Protection
    Replies: 2
    Last Post: 09-29-2008, 11:24 AM
  5. /scripts/installzendopt no longer works [merged]
    By rs-freddo in forum cPanel and WHM Discussions
    Replies: 64
    Last Post: 06-06-2006, 05:09 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube