Configuring ServerTokens & ServerSignature?
Is there a way to properly configure Apache in the LAMP app to remove the server signature and also the server tokens?
I can make the change in the apache configuration file, however these get overwritten.
Adding the following to apache.conf (at the bottom of the file) would be enough:
ServerSignature Off ServerTokens Prod
@murgero You can put
ServerSignature Offin htaccess to make it persist. I put some docs at https://cloudron.io/documentation/apps/lamp/#apache-settings.
ServerTokensseems to be in apache config only, so we will have to fix the package to support it. I have opened https://git.cloudron.io/cloudron/lamp-app/issues/13 to look into it
@girish Ah I didn't see that in the documents, good stuff. Thanks!
@murgero I added it after you asked the question