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.

httpd.conf is overwriten by easyapache? how to keep changes?

Discussion in 'EasyApache' started by postcd, Jul 16, 2014.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    621
    Likes Received:
    6
    Trophy Points:
    18
    Hello,
    according to this post i need to add new content into:
    i want to ask if my changes will be persistent (after easyapache build etc.) or how from WHM i can add new content and making it persistent?
     
  2. Shavaun

    Shavaun Well-Known Member

    Joined:
    Aug 15, 2013
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I'm not certain that the information in that post is still accurate, since it is from a few years ago.

    However I can tell you that:

    1) Making direct changes to your httpd.conf file is generally inadvisable. You can modify your global configuration without changing the httpd.conf file directly. You can find information about the different ways to do this here: http://documentation.cpanel.net/dis...iguration-ModifyyourglobalApacheconfiguration
    2) If you really want to go that route, you can follow the documentation here: http://documentation.cpanel.net/dis...Configuration-Modifythehttpd.conffiledirectly

    I have recently rewritten some of the Apache configuration docs, so please let me know if you have any questions or if they are still unclear.
     
  3. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    621
    Likes Received:
    6
    Trophy Points:
    18
    So from yours mentioned manual i found one way how to do it via WHM:
    Home >> Service Configuration >> Apache Configuration >> Include Editor

    then i already have some code there in "Pre VirtualHost Include", All versions:
    so i just paste my code after above mentioned? Im talking about code which is mentioned in the post i linked in first post of this thread?

    ? and restart apache?
     
Loading...

Share This Page