Page 1 of 1

access_log not being updated?

Posted: Sat Oct 26, 2013 2:23 pm
by duigou
I am attempting to use mod_rewrite in an htaccess file for my personal web hosting but it doesn't seem to be working right. I wanted to check what was happening in the logs but looking at /var/log/httpd/duigou/sonic.net/access_log it seems to be stale and about 8 hours old. None of my requests show up in the log though I have definitely been working with URLs in my personal web hosting site.

Is the access log not continuously updated? Is there a "live" log I can look at of either accesses or (better still) the rewrite module?

Re: access_log not being updated?

Posted: Tue Oct 29, 2013 11:14 am
by joemuller
You are correct - the access logs are not updated in real-time.

If you do need faster logging, you can try overriding mod_rewrite (via .htaccess) to write to a separate file:
http://httpd.apache.org/docs/2.2/mod/mo ... rewritelog