I have setup a server block with a proxy in nginx which works when I hit the service with an a directory.
For example I can access gs.geolytix.net/geoserver with this conf.
server {
listen 80;
server_name gs.geolytix.net;
location /geoserver {
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://138.68.137.90:8080/geoserver;
}
}
So far so good. What I would like to achieve though is that I get to the same address but only address gs.geolytix.net in the browser. Without a directory. If I change the location to / alone I go to gs.geolytix.net the response is gs.geolytix.net//
Thanks, Dennis