Java glassfish sample
https://blog.payara.fish/configuring-sticky-sessions-for-payara-server-with-apache-web-server-1
We need to enable at least the following modules: headers
, env
, proxy
, proxy_http
, proxy_balancer
.
If we are proxying over AJP of course we should also enable proxy_ajp
.
The following is a sample configuration for a site acting as a balancer to 2 instances of a backend application: