<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr"><span style="font-size:12.8px">Hi,</span><br></div><div dir="auto"><p style="font-size:12.8px">I need to know how to configure nginx for below scenario.</p><p style="font-size:12.8px">I have configured the Load Balancer(Nginx) for ignition. I have created two upstream(ignapp & ignProdapp) server. For ignapp upstream it is working fine. I need to configure the below code for upstream server(ignProdapp) in the same configuration file how to do this. Below is the sample configuration for the server ignapp. Can you please help me how to configure the below settings for another upstream server. Below is the config setting for ignapp same way I need to do it for creating location ~ /data/, location ~ /system/ , location ~ /res/ , location ~ /idp/, location ~ /.well-known/ for ignappPro Upstream server .<u></u><u></u></p><p style="font-size:12.8px"><u></u> <u></u></p><p style="font-size:12.8px;background:white"><span style="font-size:12pt;font-family:roboto">Upstream ignapp{<br>ip_hash;<br>server <a href="http://10.10.10.11:8088/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer" target="_blank">10.10.10.11:8088</a>;<br>}<br>upstream ignappPro {<br>ip_hash;<br>server <a href="http://10.10.10.12:8088/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer" target="_blank">10.10.10.12:8088</a>;<br>}<br>server {<br>listen 80;<br>server_name <a href="http://www.abdul.com/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer" target="_blank">www.abdul.com</a>;<br>location ~ /data/ {<u></u><u></u></span></p><p style="font-size:12.8px;background:white"><span style="font-size:12pt;font-family:roboto">proxy_pass ignapp/data/;<br>proxy_http_version 1.1;<br>proxy_set_header Upgrade $http_upgrade;<br>proxy_set_header Connection 'upgrade';<br>proxy_set_header Host $host;<br>proxy_pass_request_headers on;<br>proxy_cache_bypass $http_upgrade;<br>}<u></u><u></u></span></p><p style="font-size:12.8px;background:white"><span style="font-size:12pt;font-family:roboto">location ~ /system/ {<u></u><u></u></span></p><p style="font-size:12.8px;background:white"><span style="font-size:12pt;font-family:roboto">proxy_pass </span><span style="font-size:12pt;font-family:"times new roman",serif">​</span><span style="font-size:12pt;font-family:roboto">ignapp/system/;<br>tp_version 1.1;<br>proxy_set_header Upgrade $http_upgrade;<br>proxy_set_header Connection 'upgrade';<br>proxy_set_header Host $host;<br>proxy_pass_request_headers on;<br>proxy_cache_bypass $http_upgrade;<br>}<u></u><u></u></span></p><p style="font-size:12.8px;background:white"><span style="font-size:12pt;font-family:roboto">location ~ /res/ {<u></u><u></u></span></p><p style="font-size:12.8px;background:white"><span style="font-size:12pt;font-family:roboto">proxy_pass ignapp/res/;<br>proxy_http_version 1.1;<br>proxy_set_header Upgrade $http_upgrade;<br>proxy_set_header Connection 'upgrade';<br>proxy_set_header Host $host;<br>proxy_pass_request_headers on;<br>proxy_cache_bypass $http_upgrade;<br>}<u></u><u></u></span></p><p style="font-size:12.8px;background:white"><span style="font-size:12pt;font-family:roboto">location ~ /idp/ {<u></u><u></u></span></p><p style="font-size:12.8px;background:white"><span style="font-size:12pt;font-family:roboto">proxy_pass </span><span style="font-size:12pt;font-family:"times new roman",serif">​</span><span style="font-size:12pt;font-family:roboto">ignapp/idp/;<br>proxy_http_version 1.1;<br>proxy_set_header Upgrade $http_upgrade;<br>proxy_set_header Connection 'upgrade';<br>proxy_set_header Host $host;<br>proxy_pass_request_headers on;<br>proxy_cache_bypass $http_upgrade;<br>}<u></u><u></u></span></p><p style="font-size:12.8px;background:white"><span style="font-size:12pt;font-family:roboto">location ~ /.well-known/ {<u></u><u></u></span></p><p style="font-size:12.8px;background:white"><span style="font-size:12pt;font-family:roboto">proxy_pass ignapp/.well-known/;<br>proxy_http_version 1.1;<br>proxy_set_header Upgrade $http_upgrade;<br>proxy_set_header Connection 'upgrade';<br>proxy_set_header Host $host;<br>proxy_pass_request_headers on;<br>proxy_cache_bypass $http_upgrade;<br>}<u></u><u></u></span></p><p style="font-size:12.8px;background:white"><span style="font-size:12pt;font-family:roboto"># Here we are setting the protocol type, address, port, and uri (optional) that will be the destination of our proxied server:<br>location / {<br>proxy_pass </span><span style="font-size:12pt;font-family:"times new roman",serif">​</span><span style="font-size:12pt;font-family:roboto">ignapp/data/perspective/client/demo/;<br>proxy_http_version 1.1;<br>proxy_set_header Upgrade $http_upgrade;<br>proxy_set_header Connection 'upgrade';<br>proxy_set_header Host $host;<br>proxy_pass_request_headers on;<br>proxy_cache_bypass $http_upgrade;<br>}<br>}<br></span></p></div>
</div></div>