正在研究使用Nginx设置反向代理,该代理将使用URL中的2个参数(即端口和IP)来访问它们。
到目前为止,没有成功,这里是摘录
df1 = df.iloc[:, :4].sort_values(['Tab1_1'], ascending=False)
df2 = df.iloc[:, 4:].sort_values(['Tab2_2'], ascending=False)
final_df = pd.concat([df1.reset_index(drop=True),
df2.reset_index(drop=True)], axis=1)
print (final_df)
ID Tab1 Tab1_1 %_Tab_1 Tab2 Tab2_2 %_Tab1_2
0 Sun_1 Al 6 90 Type2 5 90
1 Sun_1 Alt 4 40 Type1 4 60
2 Sun_1 Alu 3 50 Type3 2 40
我想念什么?
答案 0 :(得分:0)
(对于档案)正确的最后一个是
location ~ /(?<targetport>[^/]+)/(?<targethost>[^/]+)
{
proxy_pass http://$targethost:$targetport/;
}
谢谢