Skip to main content

Make changes to httpd.conf permanent

Comments

2 comments

  • quietFinn
    Hello My changes to /etc/apache2/conf/httpd.conf via ssh console are not permanent. Restoring old settings in rebuildhttpdconf or rebuildhttpd. We used to update the distiller to make the settings permanent; in easyapache 4 this function does not work. How do I make httpd.conf settings permanent via ssh?

    Why don't you use the include files, as instructed in the beginning of httpd.conf: # To have your modifications retained, you should create/edit administrator-specific # include files: # # /etc/apache2/conf.d/includes/pre_main_global.conf # /etc/apache2/conf.d/includes/pre_virtualhost_global.conf # /etc/apache2/conf.d/includes/post_virtualhost_global.conf
    0
  • cPanelLauren
    The only way that we support modifications to the apache configuration is through the include files. No changes to the apache configuration made otherwise will be retained. The documentation on how to utilize these can be found here: Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation
    0

Please sign in to leave a comment.