Update optimize_apache.sh

This commit is contained in:
haicv committed 2026-06-08 21:25:18 +07:00
1 parent 956baaa4af
commit d3839eda72
1 file changed
+11
+11
View File
@@ -231,6 +231,17 @@ else
echo -e "${YELLOW} [!] Cấu hình mod_reqtimeout đã tồn tại trước đó, giữ nguyên.${NC}"
fi
if ! grep -q "mod_remoteip.c" "$HTTPD_CONF"; then
cat >> "$HTTPD_CONF" <<EOF
<IfModule mod_remoteip.c>
RemoteIPHeader X-Forwarded-For
RemoteIPInternalProxy 127.0.0.1
RemoteIPInternalProxy 127.0.0.8
</IfModule>
EOF
fi
# 7. KIỂM TRA VÀ KHỞI ĐỘNG LẠI APACHE
echo -e "${BLUE}--> [Bước 4] Kiểm tra cú pháp cấu hình Apache...${NC}"