mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-10304: turn off apache2 server tokens and signature in systemvms (#2563)
* systemvm: turn off apache2 server tokens and signature This turns off apache2 server version signature/token in headers. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * systemvm: remove invalid code as conf.d is not available now Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
5d05da21ef
commit
e71d4d4371
3
systemvm/debian/etc/apache2/conf-enabled/security.conf
Normal file
3
systemvm/debian/etc/apache2/conf-enabled/security.conf
Normal file
@ -0,0 +1,3 @@
|
||||
ServerTokens Prod
|
||||
ServerSignature Off
|
||||
TraceEnable Off
|
||||
@ -496,9 +496,6 @@ clean_ipalias_config() {
|
||||
|
||||
setup_apache2_common() {
|
||||
sed -i 's/^Include ports.conf.*/# CS: Done by Python CsApp config\n#Include ports.conf/g' /etc/apache2/apache2.conf
|
||||
[ -f /etc/apache2/conf.d/security ] && sed -i -e "s/^ServerTokens .*/ServerTokens Prod/g" /etc/apache2/conf.d/security
|
||||
[ -f /etc/apache2/conf.d/security ] && sed -i -e "s/^ServerSignature .*/ServerSignature Off/g" /etc/apache2/conf.d/security
|
||||
|
||||
# Disable listing of http://SSVM-IP/icons folder for security issue. see article http://www.i-lateral.com/tutorials/disabling-the-icons-folder-on-an-ubuntu-web-server/
|
||||
[ -f /etc/apache2/mods-available/alias.conf ] && sed -i s/"Options Indexes MultiViews"/"Options -Indexes MultiViews"/ /etc/apache2/mods-available/alias.conf
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user