nginx proxy subfolder code example
Example: nginx reverse proxy multiple folders
location ~ ^/app1(.*)$ {
proxy_pass http://proxy.example.com$1;
}
-OR-
location /app1 {
proxy_pass http://proxy.example.com/app1;
}
location ~ ^/app1(.*)$ {
proxy_pass http://proxy.example.com$1;
}
-OR-
location /app1 {
proxy_pass http://proxy.example.com/app1;
}