You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Dirk Niemeyer <di...@num.de> on 1997/03/01 23:30:01 UTC

mod_log-any/213: Accessing a virtual host results in the virtual host being referred as remote host in the logfile

>Number:         213
>Category:       mod_log-any
>Synopsis:       Accessing a virtual host results in the virtual host being referred as remote host in the logfile
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Mar  1 14:30:01 1997
>Originator:     dirk.niemeyer@num.de
>Organization:
apache
>Release:        1.2b7
>Environment:
Debian Linux 2.0.28
gcc 2.7.2.1
>Description:
Accessing a virtual host (e.g. www.virtual.de) from a computer in the local net 
(e.g. host.real.de) results in a log file entry giving the name of the virtual 
host (www.virtual.de) as remote host.
This is not the case when the real server (e.g. www.real.de) is accessed from 
the same host. Then the actual name (host.real.de) is found in the logfile.
For logging both use the same entry in httpd.conf like this:
ServerName www.real.de
CustomLog path_real/access.log "%h %l %u %t \"%r\" %s %b %{Cookie}i"
<VirtualHost www.virtual.de:80>
CustomLog path_virtual/access.log "%h %l %u %t \"%r\" %s %b %{Cookie}i"
</VirtualHost>
>How-To-Repeat:

>Fix:

>Audit-Trail:
>Unformatted: