You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Surendhar Thallapelly <su...@gmail.com> on 2017/11/08 11:37:55 UTC

[users@httpd] Re: X-Forwarded-For header is missing

Hi Daniel,

Can you please try http web server to redirect any SIMPLE incoming
WEBSERVICE call, it will not include any xff header.Yes,  earlier we
already enabled log  and confirmed Apache webserver is not adding them,
already attached my https.conf file for review. In my backend call, I am
already receiving client IP, only missing thing is webserver IP.

Thanks,
Surendhar


On Wednesday, November 8, 2017, Daniel <df...@gmail.com> wrote:

> That's odd because default behaviour is to add X-Forwarded-For,
> ProxyAddHeaders is the default even if you don't specify it. It should
> be there.
>
> Try adding it to LogFormat with:
>
> %{X-Forwarded-For}i
>
> Also try to log request headers reaching your backend and show logs.
> This is not a config issue if you are not disabling ProxyAddHeaders
> manually.
>
> 2017-11-07 19:44 GMT+01:00 Surendhar Thallapelly <
> surendhar.t1241@gmail.com <javascript:;>>:
> > Hi Konstantin,
> >
> >> Hi Team,
> >>
> >> I configured apache http web server to redirect incoming WEBSERVICE call
> >> to
> >> another backend application server, X-Forwarded-For is missing(webserver
> >> ip)
> >> in backend call.
> >>
> >> I have configured below in my webserver httpd.conf file.
> >>
> >> ProxyPass /TestProject http://10.160.160.33:2914/TestProject
> >> ProxyPassReverse /TestProject http://10.160.160.33:2914/TestProject
> >>
> >
> > 1. Version of Apache HTTP server = ? 2.2 & 2.4 both of versions it didn't
> > work
> > 2. What is your configuration of ProxyAddHeaders directive?
> >
> > http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxyaddheaders
> >
> > ProxyAddHeaders On
> >
> > I also enabled
> > LoadModule proxy_module modules/mod_proxy.so
> > LoadModule proxy_http_module modules/mod_proxy_http.so
> >
> > X-Forwarded-Host is working showing in my backend call, only
> X-Forwarded-For
> > is missing.  I am also attaching my complete http.conf(2.4 version) file
> for
> > your review, please review and help me.
> >
> >
> > Thanks,
> > Surendhar
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> <javascript:;>
> > For additional commands, e-mail: users-help@httpd.apache.org
> <javascript:;>
>
>
>
> --
> Daniel Ferradal
> IT Specialist
>
> email         dferradal at gmail.com
> linkedin     es.linkedin.com/in/danielferradal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org <javascript:;>
> For additional commands, e-mail: users-help@httpd.apache.org
> <javascript:;>
>
>