1

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;
   proxy_pass http://127.0.0.1:8081/geoserver/; 
} 

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.

closed as off-topic by Ian Turton Apr 15 '17 at 13:26

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.