infowars
Goto Top

Apache löst Hostnamen auf obwohl HostnameLookups Off

Erst mal schöne Weihnachten euch allen !
Ich habe hier einen Apache der ohne weiteres zutun Hostnamen auflöst obwohl in der conf HostnameLookups auf Off steht.

Lösung:
Die Log-Einstellung von %h auf %a umstellen.

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined  
    LogFormat "%a %l %u %t \"%r\" %>s %b" common  

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio  
    </IfModule>
MfG

Content-Key: 225308

Url: https://administrator.de/contentid/225308

Printed on: April 24, 2024 at 11:04 o'clock