Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Apache does not record the development of file type logs

Shulou Source: shulou.com Published: 2022-06-01 03:34:11 10月06日 Update

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

Tags: Code file log type Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Docker MySQL MariaDB Huawei