Hi Sulu,
I have a couple of VMs running tomcat/geoserver. Apache runs on the physical
server and load balances between the two VMs. I know it might not be the best
set up but it is something for me to learn from.
In each VMs geoserver web.xml I have
<context-param>
<param-name>GEOSERVER_CSRF_WHITELIST</param-name>
<param-value>IP OF MY APACHE/PHYSICAL SERVER</param-value>
</context-param>
If I understand it all correctly, as far as each geoserver is concerned, this
is the IP the requests are coming from
In my sites-enables/site.conf I have
<VirtualHost *:80>
<IfModule proxy_module>
ProxyRequests Off
ProxyPass /geoserver balancer://gscluster stickysession=JSESSIONID
ProxyPassReverse /geoserver balancer://gscluster stickysession=JSESSIONID
RequestHeader set Authorization "Basic encryptedpassword"
<Proxy balancer://gscluster>
BalancerMember http://IPADDRESS1:8080/geoserver route=1
BalancerMember http://IPADDRESS2:8080/geoserver route=2
</Proxy>
<Location /geoserver>
Order allow,deny
Allow from all
ProxyPass balancer://gscluster
</Location>
</IfModule>
</VirtualHost>
Russ
> On 21 Apr 2020, at 09:30, sulu <[email protected]> wrote:
>
> Hi Russ
>
> Yes, Proxy base url is set.
>
> Do you use something similar to
> ProxyPass /geoserver http://XXXXXXXX:8900/geoserver
> to redirect Geoserver-Requests from Apache to Tomcat?
>
> Andy
>
>
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
>
>
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to this
> list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users