2019-10

https跳转到自定义404页面的方法

2019-10-29
最近发现网站http能正常跳转自定义404页面,但是https就不能跳转到自定义404页面。 解决办法: ````php ErrorDocument 400 /errpage/400.html ErrorDocument 403 /errpage/403.html ErrorDocument 404 /errpage/404.html ErrorDocument 503 /errp.....

帝国cms被非法上传脚步图片的解决办法

2019-10-25
啊里云警报 帝国cms网站突然莫名其妙的多了一些脚步图片, 一头蒙蔽的我查看了网站的日志,发现原来是黑客通过post方法提交脚步图片到我网站目录。 攻击的路径:e/DoInfo/ecms.php 应付对策加上登录认证: ```php $mloginauthr=qCheckLoginAuthstr(); if(!$mloginauthr['islogin']){ .....

wdcp添加https的方法

2019-10-21
1、阿里云申请免费证书。 2、解压分别有三个文件:xxx.key、xxxchain.crt、xxxpublic.crt上传到服务器。 3、啊里云服务器的安全组必须要打开443端口。 配置防火墙,命令开启443端口 进入iptables目录输入(/etc/sysconfig/): ``` iptables -I INPUT -p tcp --dport 443 -j ACCE.....

apache添加日期日志的方法

2019-10-11
找到httpd.conf 找到这两句修改成下面语句 ```shell ErrorLog "|/httpd-xxxx/bin/rotatelogs /httpd-xxx/logs/log/error-%Y-%m-%d.log 86400 480" CustomLog "|/httpd-xxxx/bin/rotatelogs /httpd-xxxx/logs/log/access_lo.....

linux crontab 定时器设置

2019-10-10
命令 : ```shell crontab -e ``` 添加: ```shell 00 10 * * * /usr/bin/curl http:/www.xxxx.com/xxxx.php ``` 上面语句表示每天10点访问一次php文件.....

隐藏php版本号的方法

2019-10-10
------------ php.ini 将默认的expose_php = On修改为expose_php = Off 重启php service httpd restart ------------.....

隐藏apache版本号的方法

2019-10-10
------------ httpd.conf 查找 Include conf/extra/httpd-default.conf 把前面#去掉,并修改文件为 ServerTokens Prod ServerSignature off ------------.....