I have the following in my /etc/httpd/conf/httpd.conf:
- Code: Select all
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
And the following in my /etc/httpd/conf.d/vhosts.conf:
- Code: Select all
CustomLog "/var/log/httpd/bioma.cz-access.log" combined
I suppose the keyword combined means that the LogFormat from /etc/httpd/conf/httpd.conf should be used for /var/log/httpd/bioma.cz-access.log, am I right?
However, I'm still not getting the referer info in the log file.
The line in the log file looks like this:
- Code: Select all
[21/Aug/2019:03:21:32 +0200] 66.249.79.172 - "GET /index.php?route=product/product&tag=vegan&sort=p.price&order=ASC&page=3&limit=50&product_id=5757 HTTP/1.1" 22598
I did a grep -R on the whole /etc/httpd/ directory and there is no other occurrence of LogFormat that could override the setting.
I found a solution to a similar problem, but it was for a Debian-based system. I have CentOS 6.10 and I don't have the file that was part of the Debian solution.
What am I missing?
Thank you very much
Petr Břeň