Nginx proxy to remote server
https://osr4rightstools.org/ is on a VM in Azure. There is an nginx reverse proxy on it, with a kestrel server behind it on the same vm running .NET.
https://osr4rightstools.org/fire-map/ is on a different vm on Azure eg http://firemaposr4rights394.westeurope.cloudapp.azure.com
To proxy requests through here is the relevant section of the nginx.conf
file:
https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/ docs
# proxy anything from https://osr4rightstools/fire-map
# to the vm
# which will answer as if it comes in on the root
# eg https://osr4rightstools/fire-map/public-page.pgp
# is http://fireMapOsr4Rights394.westeurope.cloudapp.azure.com/public-page.php
location /fire-map/ {
proxy_pass http://fireMapOsr4Rights394.westeurope.cloudapp.azure.com/;
# etc ...
}