Welcome! Log In Create A New Profile

Advanced

How to proxy pass all requests expect several

Posted by andunslg 
How to proxy pass all requests expect several
July 05, 2015 02:25AM
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;
}

}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 157
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready