Configure Apache Global Configuration through script (command line)
I'm trying to build a script to automate the repetitive tasks when setting up and securing a server. I've got most of the items taken care of with exception of the Apache Global Configuration.
Can someone please point me in the right direction of where I would need to either append the configuration to a file, replace in a file, and any scripts that need to be ran after doing so?
Here's the script i'm working on which I am releasing as open source:
/https://github.com/tripflex/cpsetup/blob/master/cpsetup
Mainly I need to:
TraceEnable off
ServerSignature off
ServerTokens ProductOnly
SSLCipherSuite .......
How can I do this from command line without having to go through the WHM web ui?
What about background process killer? Is there any way to select all options and enable from command line?
Thanks!!
-
Hello :) This is documented here: Apache - Global Configuration In particular, the section titled "How to manually edit Apache features" should help. You may also find the following document helpful: How to Adjust Cipher Protocols Thank you. 0
Please sign in to leave a comment.
Comments
1 comment