ZC-9660 - Apache HTTPS access logs cannot correctly logged to ssl_log file after NGINX installed
Hello,
I recently installed NGINX reserve proxy on my server, and found that both Apache HTTP&HTTPS access are logged to the same file:
I then manually change sslport argument in http.conf from port 444 to port 443, ie:
After Apache restarts, the HTTPS access logs now can correctly log to
It looks like HTTPS requests still treated as using 443 port even the Apache is listen HTTPS on 444
/var/log/apache2/domlogs/
I then manually change sslport argument in http.conf from port 444 to port 443, ie:
CustomLog "|/usr/local/cpanel/bin/splitlogs --dir=/etc/apache2/logs/domlogs --main= --mainout=/etc/apache2/logs/access_log --sslport=444" combinedvhost
CustomLog "|/usr/local/cpanel/bin/splitlogs --dir=/etc/apache2/logs/domlogs --main= --mainout=/etc/apache2/logs/access_log --sslport=443" combinedvhost
After Apache restarts, the HTTPS access logs now can correctly log to
/var/log/apache2/domlogs/-ssl_log
It looks like HTTPS requests still treated as using 443 port even the Apache is listen HTTPS on 444
-
Hey there! Our team is aware of this issue and working on it per case ZC-9660. I'd recommend watching the change log at 102 Change Log | cPanel & WHM Documentation to see when this is fixed and applied to a future build of cPanel. 0 -
When NGINX is proxying to Apache Apache does not log, only NGINX does. It does that to avoid double logging (image everyone"s bandwidth usage, visitors, and errors doubling all of a sudden ). Hitting Apache directly will get logged by Apache however. 0
Please sign in to leave a comment.
Comments
2 comments