Re: [Geoserver-devel] Welcome page workspace/layer selection not working?

2022-10-03 Thread David Blasby via Geoserver-devel
Hi, I used -DGEOSERVER_CSRF_WHITELIST=localhost (NOTE: no port #. If you put a port# in - localhost:8111 - it will give you errors) This puts me in the same situation as before (i.e. when you save a configuration change it does save but then logs you out). Looking at the headers... REQUEST:

Re: [Geoserver-devel] Welcome page workspace/layer selection not working?

2022-10-03 Thread David Blasby via Geoserver-devel
Ok, in order to get apache to properly forward the session cookies to geoserver I needed to; ProxyPass "/dave/" "http://localhost:8080/geoserver/"; ProxyPassReverse "/dave/" "http://localhost:8080/geoserver/"; ProxyPassReverseCookiePath /geoserver / i.e. a cookie is send from geoserver (with path

Re: [Geoserver-devel] Welcome page workspace/layer selection not working?

2022-09-30 Thread Alessandro Parma
Hi Dave, Jody, I set -DGEOSERVER_CSRF_WHITELIST=gs-main.geosolutionsgroup.com Not sure where to configure the X-Forwarded-** headers. > I am not as familiar with Apache HTTP but there's a chance the headers are already there. Yes, you can enable headers logging directly in geoserver https://doc

Re: [Geoserver-devel] Welcome page workspace/layer selection not working?

2022-09-29 Thread David Blasby via Geoserver-devel
Hi, I setup apache (localhost:8111) with this; ProxyPass "/dave/" "http://localhost:8080/geoserver/"; ProxyPassReverse "/dave/" "http://localhost:8080/geoserver/"; This means that "localhost:8111/dave/web" takes me to the geoserver homepage (running on localhost:8080). Inside geoserver, I set t

Re: [Geoserver-devel] Welcome page workspace/layer selection not working?

2022-09-29 Thread Jody Garnett
Alessandro: David was testing with the Proxy Base URL setting correctly. I am also trying to set up a test environment with apache with mod_proxy as per random blog post instructions ( https://www.middlewareinventory.com/blog/docker-reverse-proxy-example/). But I don't really know what I am doing

Re: [Geoserver-devel] Welcome page workspace/layer selection not working?

2022-09-29 Thread Alessandro Parma
Hi David, andrea b) When I proxied geoserver, I couldn't save most configuration options >> (i.e. change the logging profile) >> * it would give me a "Origin does not correspond to request" error >> * others recommended setting "-DGEOSERVER_CSRF_DISABLED=true" >> + this worked

Re: [Geoserver-devel] Welcome page workspace/layer selection not working?

2022-09-29 Thread Andrea Aime
On Thu, Sep 29, 2022 at 1:05 AM David Blasby wrote: > Andrea, > > I tried to reproduce this and found some more issues; > > a) I couldn't "cd web/app; mvn jetty:run" > * I get a nullpointerexception - likely because there's no settings > in global.xml > * i used data/release and it wo

Re: [Geoserver-devel] Welcome page workspace/layer selection not working?

2022-09-28 Thread Jody Garnett
Something is odd, when trying it out it navigated to a page with two "//" characters - https://gs-main.geosolutionsgroup.com//geoserver/web/;jsessionid=90732ABF11409AA223F989BD85E30423?0 I wonder if the proxy is stripping out, or otherwise not set-up to handle, the page parameters? It should work

Re: [Geoserver-devel] Welcome page workspace/layer selection not working?

2022-09-28 Thread David Blasby via Geoserver-devel
Andrea, I tried to reproduce this and found some more issues; a) I couldn't "cd web/app; mvn jetty:run" * I get a nullpointerexception - likely because there's no settings in global.xml * i used data/release and it worked fine b) When I proxied geoserver, I couldn't save most configur