Skip to main content

How to modify httpd.conf permanently?

Comments

4 comments

  • hub2000
    i cannot edit my post due to "Spam". I put in the Post Virtual Host Include the following: Servername x Serveralias y SetEnv MAGE_RUN_CODE "diy_deu" SetEnv MAGE_RUN_TYPE "store"
    0
  • cPanelMichael
    Hello, If you want specific entries added to every virtual host, then you should follow the guide at: Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation Let us know if this helps. Thank you.
    0
  • hub2000
    Hello, thanks, it helped. It was not clear for me that the lines are included in the httpd.conf as an "add on" and do not replace the content. (Because of the explanation in the help file "An include file's contents override any value that exists in the primary configuration file.") Perhaps better: "The include file's entries override existing entry values if the same entry also exists in the primary configuration file."
    0
  • cPanelMichael
    Hello, I'm glad to see that document helped. As far as the terminology, it notes the following: [LIST]
  • Includes are the last directives in each virtual host. An include file's contents override any value that exists in the primary configuration file.
    This is accurate. Could you provide a specific example of a scenario where a modification to this statement is applicable or better explains it's purpose? Thank you.
  • 0

Please sign in to leave a comment.