While i would assume this to be no big deal i can't seem to get this right. What we are trying to achieve is set up an on-premise environment where we want to setup a list of urls like customer.domain.xx where each customer has its subdomain that should link to an internal addres like http://1.2.3.4:8080/link/something/customerid.
Our setup is that we have 1 front facing webserver that is used as an reverse proxy to our mendix apps to allow for custom domain names and ssl termination.
I tried the following but that seems to cause for an infinit loop.
location / {
proxy_pass http://1.2.3.4:8000/link/formulier/customername;
}