Forum Discussion

Antonio_Elves's avatar
Antonio_Elves
Icon for Nimbostratus rankNimbostratus
Jun 26, 2020

Forward traffic to destination path on the pool

I am trying to forward the traffic, but I am using a destination path on the pool. Example:

There are three paths:

Source URL - https://teste.com.br

Destination URL - https://abx.com.br/

Source URL - https:/teste.com.br/api/

Destination URL - https://abx.com.br/app/api/

Source URL - https:/teste.com.br/websocket/

Destination URL - https://abx.com.br/app/websocket/

 

I tried to use a rewrite policy but It didn't work.

The URL on the client can not change.

 

I have two pools, one default pool forwarding "/" and another pool to forward the WebSocket and api. My big problem is because of the path on the destination server, /app/api/ and /app/websocket/, when the client access /api/ and /WebSocket/. 

 

It needs to work as a reverse proxy. On Nginx works well using three locations where each location to forward according to proxy_pass.

No RepliesBe the first to reply