<div dir="ltr">Hi Maxim - Thanks! <div>I found my error - even though I had SELinux on permissive, it was still blocking. I though permissive allowed, but with logging. </div><div>BR</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 16, 2017 at 9:06 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
On Thu, Mar 16, 2017 at 10:39:19AM +0800, Jason In North Hollywood wrote:<br>
<br>
[...]<br>
<span class=""><br>
> Error in the log is:<br>
><br>
> 2017/03/15 22:04:27 [crit] 8647#0: *11 connect() to <a href="http://10.1.1.1:8080" rel="noreferrer" target="_blank">10.1.1.1:8080</a> failed<br>
> (13: Permission denied) while connecting to upstream, client:<br>
> 112.xxx.xxx.xxx, server: <a href="http://sub.domain.com" rel="noreferrer" target="_blank">sub.domain.com</a>, request: "GET /link1/ HTTP/1.1",<br>
> upstream: "<a href="http://10.1.1.1.1:8080/link2/" rel="noreferrer" target="_blank">http://10.1.1.1.1:8080/link2/</a><wbr>", host: "<a href="http://sub.domain.com" rel="noreferrer" target="_blank">sub.domain.com</a>"<br>
><br>
> whats a bit strange looking is the GET /link1/ - as this this should not be<br>
> the link in the final upstream URL - it should not be trying to get this<br>
> link.<br>
<br>
</span>The "request: ..." string in the error message is the original<br>
request as got from the client. It is to be used to identify the<br>
original request which caused the error.<br>
<br>
The upstream server and corresponding URI can be found in the<br>
"upstream: ..." string in the error message.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Maxim Dounin<br>
<a href="http://nginx.org/" rel="noreferrer" target="_blank">http://nginx.org/</a><br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
</font></span></blockquote></div><br></div>