所属栏目:发布日期:2017-09-12 14:15浏览量:2491作者:admin
一. 修改httpd.conf 添加:
LoadModule ap2_iguard3_module modules/mod_apache2_2_iguard3.so
LoadiGuardConfigFile etc/mod_iguard3.conf
EnableiGuardFileGuess On
二. 设置开机启动: /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/usr/local/iguard/syncserver/admtool start
nohup /usr/local/iguard/syncserver/run-check.sh &
三. 重启apache生效:
/opt/lampp/lampp apacherestart
通过apache配置防篡改协议,修改网站文件只能通过防篡改服务器进行.
如果直接在服务器上进行修改,防篡改服务器会将文件还原.如果文件不同步.可能会造成冲突,网站无法打开.
四. 卸载防篡改服务
1.注释httpd.conf
LoadModule ap2_iguard3_module modules/mod_apache2_2_iguard3.so
LoadiGuardConfigFile etc/mod_iguard3.conf
EnableiGuardFileGuess On
2.注释:/etc/rc.local
/usr/local/iguard/syncserver/admtool start
nohup /usr/local/iguard/syncserver/run-check.sh &
3.执行:
/usr/local/iguard/syncserver/admtool stop
4.重启服务器