curl -i 121.43.102.225:7788
HTTP/1.1 301 Moved Permanently
Server: openresty
Date: Tue, 10 Nov 2015 23:25:25 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.3
X-Pingback: http://121.43.102.225:8888/xmlrpc.php
Location: http://121.43.102.225:8888/
这是何故呢?
在 2015年11月10日星期二 UTC+8下午8:35:43,doujiang写道:
Hello,
在 2015年11月10日 上午9:46,Kai Ding
<tracym...@gmail.com>写道:
使用上面的配置,我通过域名www.xxxx.xx访问个人网站没有任何问题,但是使用ip地址(x.x.x.x:7788)来访问会出错,抓到的访问日志是:
客户端命令:curl 121.43.102.225:7788
nginx日志:123.58.xx.xx - - [10/Nov/2015:09:44:59 +0800] "GET / HTTP/1.1" 301 5 "-" "curl/7.43.0"
你看看返回的 301 到底是什么内容呢
--