You are not logged in.

#1 2012-11-19 19:56:11

dwheeler
Member
Registered: 2010-11-12
Posts: 21

Apache Logging Issues Since Converting to systemd

Since converting to systemd, apache is doing host lookups for log entries. I have verified the timing by reviewing logs: before systemd apache was logging IP's; immediately after booting into systemd for the first time, apache started resolving hostnames for the logs. I have made no changes to my apache configuration files in weeks, and haven't made changes to logging in months. Does anyone know why changing to systemd would cause issues with apache logging - and how I resolve those issues?

The relevant portions of httpd config files...
/etc/httpd/conf/httpd.conf:

ErrorLog "/var/log/httpd/error_log"
LogLevel warn
<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    CustomLog "/var/log/httpd/access_log" common
</IfModule>

From extra/httpd-default.conf

HostnameLookups Off

Virtual hosts all have their logging configured like this:

<VirtualHost *:80>
...
    ErrorLog "/var/log/httpd/site-error_log"
    CustomLog "/var/log/httpd/site-access_log" combined
...
</VirtualHost>

Offline

Board footer

Powered by FluxBB