[[email protected] ~]# /usr/local/apache2.4/bin/apachectl -t
Syntax OK
[[email protected] ~]# /usr/local/apache2.4/bin/apachectl graceful
jpg的并没有记录在日志
[[email protected] ~]# cd /data/wwwroot/111.com/
[[email protected] 111.com]# rz 上传一张图片 we,然后浏览器请求查看。看日志,里面并没有记录
env=!img去掉
日志里面有了这一条记录
[[email protected] 111.com]# mv abc.jpg ace.jpg
再刷新一次,变成304,304代表检测到下载的图片并没有变化,所以不需要到服务器端再下载一次
[[email protected] 111.com]# /usr/local/apache2.4/bin/apachectl -M |grep expire
[[email protected] 111.com]# vim /usr/local/apache2.4/conf/httpd.conf
[[email protected] 111.com]# /usr/local/apache2.4/bin/apachectl -M |grep expire
expires_module (shared)
原文地址:https://www.cnblogs.com/sisul/p/8496271.html
时间: 2024-10-03 13:44:57