I have the following nginx rule
server_name mydomain.com;
location ^~ /geosamples/ {
rewrite ^/geosamples/(.*)$ /geoserver/$1 break;
proxy_pass http://192.168.92.100:8088;
proxy_connect_timeout 180s;
proxy_read_timeout 240s;
}
If I access the application at mydomain.com/geosamples/index.html it works fine.
If I access it at
mydomain.com/geosamples/
it gets redirected to
mydomain.com/geoserver/index.html
and obviously doesn't work anymore!
I am guessing the geoserver app is redirecting the client to this buggy URL...
How can I prevent this? I would appreciate any help!