You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2015/12/07 20:19:46 UTC

[Bug 58700] New: Apache logs not working with mod_remoteip and X-forwardef-for

https://bz.apache.org/bugzilla/show_bug.cgi?id=58700

            Bug ID: 58700
           Summary: Apache logs not working with mod_remoteip and
                    X-forwardef-for
           Product: Apache httpd-2
           Version: 2.4.16
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_logio
          Assignee: bugs@httpd.apache.org
          Reporter: georgi.int@gmail.com

Hello,
I am using varnish wich send x-forwarded-for to apache 2.4 and on the apache
site i have mod_remoteip with the following configuration:

RemoteIPHeader X-Forwarded-For
RemoteIPInternalProxy 77.77.151.103 
RemoteIPInternalProxy 127.0.0.1


On 2.2 with rpaf module eveything is ok without changing mod_logio
configuration,but on 2.4 with mod_remoteip nothing works and I think there is a
bug in the version or in the module. Although I can't understand why and where
exactly so I would like to ask you to investigate this with me. If the mod log
configuration begins with %h the logs are generated but with the server ip, not
the client's one. If I change %h to %a logs stops completely.

What can I do and try, how to debug?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 58700] Apache logs not working with mod_remoteip and X-forwarded-for

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58700

William A. Rowe Jr. <wr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #2 from William A. Rowe Jr. <wr...@apache.org> ---


*** This bug has been marked as a duplicate of bug 55348 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 58700] Apache logs not working with mod_remoteip and X-forwarded-for

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58700

Mike Rumph <mi...@oracle.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Apache logs not working     |Apache logs not working
                   |with mod_remoteip and       |with mod_remoteip and
                   |X-forwardef-for             |X-forwarded-for

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 58700] Apache logs not working with mod_remoteip and X-forwarded-for

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58700

--- Comment #1 from Mike Rumph <mi...@oracle.com> ---
Hello Georgi,

For help to debug this situation, you should probably start with the users
mailing list:

- http://httpd.apache.org/userslist.html

Bugzilla should only be used for reporting specific problems in the code.
But that depends on what you mean by "logs stops completely".

It is more likely that the effects of mod_remoteip are sometimes difficult to
understand.

You can refer to bug 55635 and the bugs that it relates to for more
information.
As mentioned in that bug, I've found the following LogFormat to be useful in
understanding the effects of mod_remoteip:

LogFormat "%h %a %{c}a xf=\"%{X-Forwarded-For}i\" %l %u %t \"%m\" \"%r&\"
\"%q&\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" pid=%{pid}P tid=%{tid}P
time_ms=%D" combined

You could also try using curl as follows:

curl -v -H "X-Forwarded-For: <contents of X-Forwarded-For Header>" <URL as
issued from the client> 

If you publish some of these results in an email on the users list, someone
will likely be able to help you with your setup.

Thanks,

Mike Rumph

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org