I was required to make GeoServer to be accessible from /beta/geoserver however I always get redirected back to /geoserver which is 404 of course.

Here is the current location rule:

location /beta/geoserver/ {
   proxy_set_header Host               $host:$server_port;
   proxy_set_header X-Forwarded-Host   $host;
   proxy_set_header X-Forwarded-Server $host;
   proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;

And my observations:

/beta/geoserver/ redirects to /geoserver/web/ which is 404

/beta/geoserver/index.html redirects to /beta/geoserver/web/ which is fine.

I can try login there but I'm immediately redirected to /geoserver/web;jsessionid=... which is 404 again and I'm stuck.

The only thing I've configured is the Proxy Base URL but that's used by the services but not by the GeoServer AFAIK.

I'm neither a Tomcat nor a GeoServer expert so I guess the solution is one configuration file away from me but I haven't found a single clue of how to solve it.

Browse other questions tagged or ask your own question.