nginx upstream based on URL parameter

 

 

location / {

if ( $arg_parameterName = “test1″ ) {
proxy_pass http://server1;
}
if ( $arg_parameterName = “test2″ ) {
proxy_pass http://server2;
}
}



This entry was posted on 2019 年 02 月 25 日 and is filed under IT DOC. Written by: . You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.