The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to change vhost template file for good?

Discussion in 'General Discussion' started by AL-Kateb, Mar 9, 2011.

  1. AL-Kateb

    AL-Kateb Active Member

    Joined:
    Feb 27, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    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. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    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.
     
  3. AL-Kateb

    AL-Kateb Active Member

    Joined:
    Feb 27, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for your reply.
     
Loading...

Share This Page