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.....
2019-10-25
啊里云警報
帝國cms網站突然莫名其妙的多了一些腳步圖片,
一頭蒙蔽的我查看了網站的日志,發現原來是黑客通過post方法提交腳步圖片到我網站目錄。
攻擊的路徑:e/DoInfo/ecms.php
應付對策加上登錄認證:
```php
$mloginauthr=qCheckLoginAuthstr();
if(!$mloginauthr['islogin']){
.....
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.....
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.....
2019-10-10
命令 :
```shell
crontab -e
```
添加:
```shell
00 10 * * * /usr/bin/curl http:/www.xxxx.com/xxxx.php
```
上面語句表示每天10點訪問一次php文件.....
2019-10-10
------------
php.ini
將默認的expose_php = On修改為expose_php = Off
重啟php service httpd restart
------------.....
2019-10-10
------------
httpd.conf
查找
Include conf/extra/httpd-default.conf
把前面#去掉,并修改文件為
ServerTokens Prod
ServerSignature off
------------.....