I want to proxy pass requests coming to my server. Requiremnt is this,
URLs starting with mobile > mobile app
URLs starting with dashbord > dashbord app
Other requests > URL Mapper App
I wrote this kind of config. mobile, dashbord app requests works fine. But url mapper want get other requests. Please help! This is my config.
server {
listen 80;
server_name example.com;
location /dashboard {
proxy_pass http://127.0.0.1:8080/dashboard;
}
location /mobile {
proxy_pass http://127.0.0.1:8080/mobile;
}
location / {
proxy_pass http://127.0.0.1:8080/urlMapper;
}
}
URLs starting with mobile > mobile app
URLs starting with dashbord > dashbord app
Other requests > URL Mapper App
I wrote this kind of config. mobile, dashbord app requests works fine. But url mapper want get other requests. Please help! This is my config.
server {
listen 80;
server_name example.com;
location /dashboard {
proxy_pass http://127.0.0.1:8080/dashboard;
}
location /mobile {
proxy_pass http://127.0.0.1:8080/mobile;
}
location / {
proxy_pass http://127.0.0.1:8080/urlMapper;
}
}