• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Apache, httpd.conf, trying to log cookies

B

bona fide

Guest
I'm trying to get cookies in the Apache log files, but it isn't working.

/etc/httpd/conf/httpd.conf contains:
LoadModule usertrack_module modules/mod_usertrack.so
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" combined
CustomLog logs/access_log combined

.htaccess contains:
CookieTracking On
CookieExpires "5 years"
CookieName "mycookie"

and I've restarted Apache via:
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start

but nada in access_log. I've tried modifying vhost.conf too.

Am I missing a typo, or what?

Thanks!
 
Finally figured this out. The cookies were getting written to the client, and were getting passed. The issue had to do with the Apache configuration. Coding the following specific fpointer to the log file in vhost.conf fixed it:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" combined
CustomLog /home/httpd/vhosts/mydomain.com/statistics/logs/access_log combined

Dear SWsoft: Please please please document the relationship between httpd.conf, httpd.include, and vhost.conf, and how to manage the location and contents of the log files. This took hours upon hours of experimentation and research.
 
Back
Top