第5集 Apache Status安全
一.開啟status模組:
LoadModule status_module modules/mod_status.so
二.設定status配置檔案:
1.httpd.conf
Include conf/extra/status.conf
2./usr/local/apache/conf/extra/status.conf
<Location /status>
SetHandler server-status
Require all granted
三.status認證安全
1.httpd.conf
Include conf/extra/status.conf
2./usr/local/apache/conf/extra/status.conf
<Location /status>
SetHandler server-status
AllowOverride AuthConfig
AuthName “bbs.ityzm.com”
AuthType Basic
AuthUserFile /websafe/.htpasswd
require valid-user
本作品採用《CC 協議》,轉載必須註明作者和本文連結