mod rewrite - Can we create a custom log file in apache 2.4? -
with apache 2.2, using below-
rewritelog "/etc/httpd/logs/rewrite.log" rewriteloglevel 1 and
rewritelog "logs/rewrite_test1.log" rewriteloglevel 1 how replace them in apache 2.4.
as per apache http documentation, looks rewrite logs included error log need extract data:
those familiar earlier versions of mod_rewrite no doubt looking rewritelog , rewriteloglevel directives. functionality has been replaced new per-module logging configuration mentioned above. mod_rewrite-specific log messages, pipe log file through grep: tail -f error_log|fgrep '[rewrite:'d.
the path error log can defined in way (more info there):
errorlog "/var/log/httpd/error_log"
to control rewrite log level can use loglevel directive this:
example: loglevel alert rewrite:trace3
Comments
Post a Comment