Skip to main content

How to permanently store new ssl config

Comments

5 comments

  • ModServ
    Hello, You can add the custom configuration in the template provided in this path:
    /var/cpanel/templates/apache2
    I guess it will be in ssl_vhost.local (I'm not really sure). Regards,
    0
  • BottyZ
    Hello, You can add the custom configuration in the template provided in this path:
    /var/cpanel/templates/apache2
    I guess it will be in ssl_vhost.local (I'm not really sure). Regards,

    Hi ModServ, Thanks for the reply, I've checked that directory and its empty. However I'm using apache 2.4.12 and there is a different folder called apache2_4 with a ssl_vhost.default in it, but it contains a lot of if statements and not a lot of anything that I consider replaceable. I can see some of the ssl directives in the main.default file in there though, so I would imagine this to be the file I need to amend? I take it I would add my custom code to this file and then restart apache? Then it would appear in the usual http.conf? I'm reluctant to edit the file before making sure its correct as I don't want to have to rekey my ssl certificate again, which happened twice yesterday whilst working on this (basically told me the certificate was revoked in the browser when apache was restarted). I did add the directives to the pre_main includes file, but I'm not sure if this actually worked as BEAST is still not mitigated server side.
    0
  • cPanelMichael
    Hello :) You should be able to add these values to the "Pre Main Include" field in "WHM Home " Service Configuration " Apache Configuration " Include Editor". Does this not correctly configure the values? Thank you.
    0
  • BottyZ
    Hello :) You should be able to add these values to the "Pre Main Include" field in "WHM Home " Service Configuration " Apache Configuration " Include Editor". Does this not correctly configure the values? Thank you.

    Hi Michael, Unfortunately it didn't seem to work with the includes file.
    0
  • cPanelMichael
    Unfortunately it didn't seem to work with the includes file.

    Could you elaborate on this? For instance, do the PCI tests still fail or are you simply checking the Apache configuration file and excepting to see the entries? Thank you.
    0

Please sign in to leave a comment.