-1

I need show the referrer for 404 error in the Apache log file.

I found only script in php, it's possible to make through Apache conf?

0

You can have AccessLogs in Combined Format, which will include Referer and status code:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
CustomLog log/access_log combined 

in your Apache configuration should do it.

|improve this answer|||||
  • Ok thanks, i have alredy this conf but some link not write in log, i now have confirmation that is correct. – hellb0y77 Oct 3 '14 at 10:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.