Update optimize_apache.sh
This commit is contained in:
1 parent
956baaa4af
commit
d3839eda72
1 file changed
+11
@@ -231,6 +231,17 @@ else
|
|||||||
echo -e "${YELLOW} [!] Cấu hình mod_reqtimeout đã tồn tại trước đó, giữ nguyên.${NC}"
|
echo -e "${YELLOW} [!] Cấu hình mod_reqtimeout đã tồn tại trước đó, giữ nguyên.${NC}"
|
||||||
fi
|
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
|
# 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}"
|
echo -e "${BLUE}--> [Bước 4] Kiểm tra cú pháp cấu hình Apache...${NC}"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user