OK, in the cas.properties files I have placed the following (for our 
reverse proxy hosted at IP = 111.222.33.44):

----BEGIN----
...
server.tomcat.accesslog.directory=/var/log/tomcat
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b
server.use-forward-headers=true
server.tomcat.internal-proxies=111\\.222\\.33\\.44
server.tomcat.remote-ip-header=x-forwarded-for
server.tomcat.protocol-header=x-forwarded-proto
logging.level.org.apache.catalina.valves.RemoteIpValve=DEBUG
...
----END----

However, the IP address field for /var/log/tomcat/access_log.<date>.log 
still shows the IP address of our load balancer, not the client.
Am I missing something?



On Wednesday, December 18, 2019 at 2:41:57 PM UTC-5, Pascal Rigaux wrote:
>
> On 18/12/2019 19:48, crdaudt wrote: 
>
> > Is it possible to configure the embedded tomcat container with a 
> RemoteIpValve setting? 
>
> It is possible: 
> https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto-use-tomcat-behind-a-proxy-server
>  
>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/3a7fb056-f39a-4e3b-aaca-d7b37249602e%40apereo.org.

Reply via email to