Apache
Apache 安裝
apt-get install apache2
/var/www/html/
查看 Apache 執行權限
apt update
apt list --upgradable
apt-get install lsof
lsof -i:80
groupadd apache
useradd apache -g apache
vim /etc/apache2/apache2.conf
User apache
Group apache
/etc/init.d/apache2 restart
目錄遍歷問題
<Directory /var/www/html>
Options -Indexes
</Directory>
關閉 Apache 版本與作業系統版本
ServerSignature Off
ServerTokens Prod
FileETag None
yum update httpd
apt-get install apache2
yum install mod_security
vim apache2.conf
Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure
vim apache2.conf
Header set X-XSS-Protection "1; mode=block"