Fall into the trap, be careful

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.