[users@httpd] Sending client's IP address to local proxied application server.

2020-10-16 Thread Mike Diehl
Hi all, I've got an application server, written in Perl Dancer2, that needs to get access to the client's actual IP address. But instead, it's getting the IP address of the apache server. Both the Apache and application server are running on the same hardware. Here is how I have the vhost define

Re: [users@httpd] Sending client's IP address to local proxied application server.

2020-10-16 Thread Eric Covener
> r...@example.com:/etc/apache2# cat conf-enabled/remoteip.conf > > RemoteIPHeader X-Forwarded-For > RemoteIPTrustedProxy 127.0.0.1 198.101.193.34 I think these need to be https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html#remoteipinternalproxy ---

Re: [users@httpd] Sending client's IP address to local proxied application server.

2020-10-16 Thread Mike Diehl
Well, I changed my remoteip.conf file to contain: RemoteIPHeader X-Forwarded-For RemoteIPInternalProxy 127.0.0.1 198.101.193.34 But that didn't change anything. Any other ideas? Mike. On Fri, Oct 16, 2020 at 2:23 PM Eric Covener wrote: > > r...@example.com:/etc/apache2# cat conf-enabled/remo

RE: [users@httpd] Sending client's IP address to local proxied application server.

2020-10-16 Thread DICKEY Rob
ProxyPreserveHost On (it is set off by default) will preserve incoming Host header. For IP, you could use a custom header using %{REMOTE_ADDR}as the value. Best Regards, Rob DICKEY Americas R&D Technical Customer Support Senior Manager rob.dic...@3ds.com 3DS.COM

Re: [users@httpd] Forwarding IP to HTTPS. [EXT]

2020-10-16 Thread Frank
Jason, That smells like CentOS - they mangle the apachectl script, use httpd -S instead. You'll want to read the contents of welcome.conf too. Lastly, you don't need to use mod_rewrite to redirect. It should be your last absolute resort. Every vhost should have an explicit ServerName set too. O