Apache does not record the development of file type logs
Vim / usr/local/apache2/conf/extra/httpd-vhosts.conf
Add the following code to the CustomLog line:
SetEnvIf Request_URI ". *\ .gif $" p_w_picpath-request
SetEnvIf Request_URI ". *\ .jpg $" p_w_picpath-request
SetEnvIf Request_URI ". *\ .png $" p_w_picpath-request
SetEnvIf Request_URI ". *\ .bmp $" p_w_picpath-request
SetEnvIf Request_URI ". *\ .swf $" p_w_picpath-request
SetEnvIf Request_URI ". *\ .js $" p_w_picpath-request
SetEnvIf Request_URI ". *\ .css $" p_w_picpath-request
Add after the CustomLog line:
Envailing pictures, asking for a picture.
Save exit
Apachectl-t
Apachectl restart