<div dir="ltr">Ok. This looks like progress. However it still fails. Here is my config as it stands now. <div><br></div><div>in nginx.conf:</div><div><br></div><div><div><span style="font-size:12.8px">http {</span><br style="font-size:12.8px"><span style="font-size:12.8px">   upstream </span><a href="http://myappliationsite.net/" rel="noreferrer" style="font-size:12.8px" target="_blank">myappliationsite.net</a><span style="font-size:12.8px"> {</span><span style="font-size:12.8px"><br>       ip_hash;<br>       server <a href="http://backendappsite1.net/" rel="noreferrer" target="_blank">backendappsite1.net</a>;<br>       server <a href="http://backendappsite2.net/" rel="noreferrer" target="_blank">backendappsite2.net</a>;<br>       server <a href="http://backendappsite3.net/" rel="noreferrer" target="_blank">backendappsite3.net</a>;<br>   }</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">In default.conf:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">server {</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">    listen       443 ssl;</span></div><div><span style="font-size:12.8px">    server_name  <a href="http://myapplicationsite.net" target="_blank">myapplicationsite.net</a>;</span></div><div><span style="font-size:12.8px">    keepalive_timeout 70;</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">    ssl_certificate     /appssl/fd.crt;</span></div><div><span style="font-size:12.8px">    ssl_certificate_key /appssl/lb.key;</span></div><div><span style="font-size:12.8px">    ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;</span></div><div><span style="font-size:12.8px">    ssl_ciphers         HIGH:!aNULL:!MD5;</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">    </span><span style="font-size:12.8px"> location / {</span></div><div><span style="font-size:12.8px">     </span><span style="font-size:12.8px">   proxy_pass   <a href="http://myapplicationsite.net" target="_blank">http://myapplicationsite.net</a>;</span></div><div><span style="font-size:12.8px">        proxy_set_header HOST <a href="http://myapplicationsite.net" target="_blank">myapplicationsite.net</a>;</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">    }</span></div><div><span style="font-size:12.8px">    }</span></div><div><span style="font-size:12.8px">    </span></div><div><span style="font-size:12.8px">And here is the errors I get:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">On the web page:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">502 bad gateway. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">From the logs:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><div> HTTP/1.1", upstream: <b>"<a href="http://192.168.155.120:80" target="_blank">http://192.168.155.120:80</a></b>/", host: "<a href="http://myapplicationsite.net" target="_blank">myapplicationsite.net</a>"</div><div>2016/07/27 10:54:05 [warn] 27491#27491: *3 upstream server temporarily disabled while connecting to upstream, client: 192.168.254.202, server: <a href="http://myapplicationsite.net" target="_blank">myapplicationsite.net</a>, request: "GET / HTTP/1.1", upstream: "<b><a href="http://192.168.155.120:80" target="_blank">http://192.168.155.120:80</a></b>/", host: "<a href="http://myapplicationsite.net" target="_blank">myapplicationsite.net</a>"</div><div><br></div><div>Why is it trying to connect to my servers over port 80? I need to pass it over on 443. How can I accomplish this? Even if I change the proxy pass to https in the logs it still trys </div><div><br></div><div><br></div></span></div><div><span style="font-size:12.8px"><br></span></div><div><br></div><div>        </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 27, 2016 at 10:42 AM, Reinis Rozitis <span dir="ltr"><<a href="mailto:r@roze.lv" target="_blank">r@roze.lv</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can anyone give me an example config of what it would look like in both nginx.conf and default.conf using the names/info I have provided?<br>
</blockquote>
<br></span>
It seems you have taken the default configuration example but if you use nginx as a balancer without serving any .php (or other) files you actually don't need those *.php etc locations  - a single location / {} will do the job (means all requests go to backends).<br>
<br>
For example:<br>
<br>
<br>
http {<br>
   upstream <a href="http://myappliationsite.net" rel="noreferrer" target="_blank">myappliationsite.net</a> {<span class=""><br>
       ip_hash;<br>
       server <a href="http://backendappsite1.net" rel="noreferrer" target="_blank">backendappsite1.net</a>;<br>
       server <a href="http://backendappsite2.net" rel="noreferrer" target="_blank">backendappsite2.net</a>;<br>
       server <a href="http://backendappsite3.net" rel="noreferrer" target="_blank">backendappsite3.net</a>;<br>
   }<br>
<br></span>
server {<br>
   listen       80;<span class=""><br>
   listen       443 ssl;<br>
<br>
  server_name <a href="http://myappliationsite.net" rel="noreferrer" target="_blank">myappliationsite.net</a>;<br>
<br></span>
 location / {<span class="im HOEnZb"><br>
    proxy_pass   <a href="http://myappliationsite.net" rel="noreferrer" target="_blank">http://myappliationsite.net</a>;<br>
    proxy_set_header HOST <a href="http://myappliationsite.net" rel="noreferrer" target="_blank">myappliationsite.net</a>;<br>
}<br>
}<br>
<br>
<br></span><div class="HOEnZb"><div class="h5">
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>