]> git.pld-linux.org Git - packages/apache.git/commitdiff
add remoteip client ip configuration remoteip-logformat
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 23 Oct 2018 09:15:07 +0000 (12:15 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 23 Jan 2019 11:08:32 +0000 (13:08 +0200)
apache-httpd.conf
apache-mod_log_config.conf

index 31ff912f23c8996ca7896e4d72f99be8b15af186..7c510444e6796ffe483bac39aa34b8a811c56edd 100644 (file)
@@ -52,7 +52,7 @@ ErrorLog logs/error_log
 # https://httpd.apache.org/docs/2.4/mod/core.html#errorlogformat
 # There is no default value, Apache uses different built in function if
 # ErrorLogFormat is not defined.
-#ErrorLogFormat "[%{u}t] [%m:%l] [pid\ %P] [client\ %a] [vhost\ %v] %M"
+ErrorLogFormat "[%{u}t] [%m:%l] [pid\ %P] [client\ %a] [vhost\ %v] %M"
 
 # LogLevel: Control the number of messages logged to the error_log.
 # Possible values include: debug, info, notice, warn, error, crit,
index 298a5d4eb4497a2a677f89f99685c10ba6481b94..d49105f65c3be00ec112353d97e3c365e5efe8f2 100644 (file)
@@ -17,12 +17,17 @@ LoadModule log_config_module modules/mod_log_config.so
        LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
        LogFormat "%h %l %u %t \"%r\" %>s %b" common
 
+       <IfModule remoteip_module>
+               # override with %a
+               LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
+               LogFormat "%a %l %u %t \"%r\" %>s %b" common
+       </IfModule>
+
        <IfModule logio_module>
                # You need to enable mod_logio.c to use %I and %O
                LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
        </IfModule>
 
-       #
        # The location and format of the access logfile (Common Logfile Format).
        # If you do not define any access logfiles within a <VirtualHost>
        # container, they will be logged here.  Contrariwise, if you *do*
This page took 0.040195 seconds and 4 git commands to generate.