Today, a feature of the company's products suddenly went down... The demo appeared before, and the mobile phone client showed that the download resources could not be obtained, but the ticket was broken ..
On the mobile phone end, the server address is investigated and http:/response is called:
2014/08/13 16:11:00 [error] 23851#0: *10303771 connect() failed (111: Connection refused) while connecting to upstream, client: 12.12.12.12, server: *.domain.hostname.cn, request: "POST /apis/pl/getStickGoInfo HTTP/1.0", upstream: "http://10.8.1.10:8080/apis/pl/getStickGoInfo", host: "00e06f26db47.domain.hostname.cn"
.........................
2014/08/13 16:21:48 [error] 24149#0: *9354 invalid URL prefix in "http://", client: 14.205.27.34, server: *.domain.hostname.cn, request: "GET / HTTP/1.1", host: "123456789012.domain.hostname.cn"2014/08/13 16:21:49 [error] 24149#0: *9363 invalid URL prefix in "http://", client: 14.205.27.34, server: *.domain.hostname.cn, request: "GET / HTTP/1.1", host: "123456789012.domain.hostname.cn", request:"GET /favicon.ico HTTP/1.1", host: "123456789012.domain.hostname.cn"2014/08/13 16:21:49 [error] 24149#0: *9365 invalid URL prefix in "http://", client: 14.205.27.34, server: *.domain.hostname.cn, request: "GET / HTTP/1.1", host: "123456789012.s.234g.cn", request:"GET /favicon.ico HTTP/1.1", host: "123456789012.domain.hostname.cn"2014/08/13 16:25:32 [error] 24151#0: *12008 directory index of "/var/www/" is forbidden, client: 36.103.170.240, server: host, request: "GET / HTTP/1.0", host: host
There is no error in checking nginx configuration again at this time. The path/AND/APIs/stickydataurls/are redirected,
server_name *.domain.hostname.cn;location /{ ................}location = /apis/stickydataurls/ { include /etc/nginx/conf.d/PhyLink; proxy_pass http://do.host.cn/apis/pl/getStickGoInfo;}
However, there are always problems with access.
Check the log again and find that port 8080 should not appear in the earliest log. This port should appear only in location/branch, but in this configuration, this situation is completely incomprehensible. The mobile phone calls/APIs/stickydataurls/should enter/APIs/PL/getstickgoinfo in the do.host.cn domain. Instead of 10.8.1.10: 8080/APIs/PL/getstickgoinfo.