0

I'm using nginx as a proxy server in front of Tomcat instances.

There's basic authentication set up, giving access to the demo page just to a few users.

Is it possible to modify the proxy_pass parameter depending on the username provided by the client ?

Basically, if user1, user2, proxy http://host:1234, if user3, user4, proxy http://host:4321.

Thanks

1 Answer 1

0

You could try using $remote_user variable with Map module to set proxy port.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.