除去配置语法失误、逻辑失误

nginx中的大部分问题都是前端到后端联通性

curl 域名没反应

cyr@test:/etc/nginx/sites-enabled$ curl test.hehe.example.com -vvv
* About to connect() to test.hehe.example.com port 80 (#0)
* Trying 192.168.154.33...
* connected
* Connected to test.hehe.example.com (192.168.154.33) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.26.0
> Host: test.hehe.example.com
> Accept: */*
>
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
^C

1.检查nginx是否正常启动状态,否则nginx.conf中cores目录是否存在,否则创建

2.检查前端到后端,直接curl 后端ip:port

3.如后端做了域名分流,后端仍有后端,检查后-后端连通

05-11 11:35