Home > Apache > Change Apache Log Format

vim /etc/httpd/conf/extra/httpd-vhosts.conf
CustomLog "...../logs/access.log" vhost_combined
LogFormat "%h %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined

Reference:
https://blog.elijaa.org/2010/09/07/how-to-make-apache-log-real-scriptname-and-execution-time-with-mod_rewrite-and-logformat/



Flag Counter