提高Apache安全属性
vi /usr/local/apache2/conf/httpd.conf
确保apache配置文件httpd.conf中包含如下选项:
UserDir Disabled
ServerTokens Prod
ServerSignature Off
TraceEnable Off
完毕,重新启动apache使配置生效。
/usr/local/apache2/bin/apachectl restart
vi /usr/local/apache2/conf/httpd.conf
确保apache配置文件httpd.conf中包含如下选项:
UserDir Disabled
ServerTokens Prod
ServerSignature Off
TraceEnable Off
完毕,重新启动apache使配置生效。
/usr/local/apache2/bin/apachectl restart
1条评论 ▼