Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Feb 2010
    Posts
    20

    Default how to change vhost template file for good?

    Hello everybody, after i edited vhost.default and ran /scripts/rebuildhttpdconf i thought i did what i had to, later i figured cPanel will override vhost.default on updates and my changes will be lost.

    i searched for some posts regarding this here and the solution is to make the changes to vhost.local instead, but i don't have vhost.local so what i did is "cp vhost.default vhost.local" changed it and rebuilt apache conf again.

    but what I'm not sure about now whether that's all! because vhost.local was not there already, so is it like cPanel will check if there is vhost.local exists then it will rebuild conf using it and if not it will use default?

    i don't want my changes to be lost at all, i did some security limits there and i don't want them back to how they were before.

    so if there is something else i need to do now please let me know.

    thanks

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: how to change vhost template file for good?

    vhost.local will not exist by default, you have to create. Once created we won't touch it. If vhost.local exists it will be used instead of vhost.default.

    Everything you described in your post are the proper actions.
    Kenneth
    Product Manager
    cPanel, Inc.

  3. #3
    Member
    Join Date
    Feb 2010
    Posts
    20

    Default Re: how to change vhost template file for good?

    Thanks for your reply.

Similar Threads & Tags
Similar threads

  1. Template Error: The template file must be given
    By fkessler in forum Diskussion auf Deutsch
    Replies: 1
    Last Post: 04-30-2010, 04:07 AM
  2. Documentation of properties of vhost in template?
    By JoeMurray in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-07-2009, 01:44 PM
  3. Create account with custom vhost template
    By JamieD in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 01-15-2009, 09:15 AM
  4. Creating new accounts ignores vhost.local template
    By jandafields in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-01-2008, 01:55 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube