Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

How to proxy pass all requests expect several

$
0
0
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;
}

}

Viewing all articles
Browse latest Browse all 4759

Trending Articles