How to set up a reverse proxy with organization structure?
I am trying to put in place nginx as a reverse proxy to hide the thingworx's URLs.
I use this configuration for nginx:
server {
listen 80;
server_name localhost;
location /MyApp {
proxy_pass http://localhost:8080/Thingworx/FormLogin/MyAppOrg;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
It works fine for the login page of the organization but the Home Mashup cannot be displayed, I got an 404 error.
To solve it, I need to add this rule:
location /Thingworx {
proxy_pass http://localhost:8080/Thingworx;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
But by doing this I didn't mask anything, I can see the full internal url in the address bar after logging...
Does anyone know how to setup a reverse proxy with organizations ?

