我有一个在localhost:8080运行的Unicorn服务器,当我执行curl -O http://localhost:8080时,它总是缩小到我的根域。我不知道这个问题是从何而来的,我很感谢在解决这个问题方面提供的任何帮助。如果您需要更多的信息,请告诉我。
如果您问,“您尝试了什么”,从昨晚开始,我一直试图通过更改NGinx配置,/etc/hosts,主机名来解决这个问题。我至少可以说,这不是NGinx现在的问题(yeay)。
Unicorn
$ curl -H 'Host: git.niklasrosenstein.com' http://localhost:8080 -i
HTTP/1.1 302 Found
Date: Mon, 18 Jan 2016 14:29:08 GMT
Status: 302 Found
Connection: close
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Location: http://niklasrosenstein.com
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
X-Request-Id: 1a63e4a4-a5fe-4544-8f74-8b1bd0117a57
X-Runtime: 0.271394
<html><body>You are being <a href="http://niklasrosenstein.com">redirected</a>.</body></html>发布于 2016-01-18 16:58:45
因为只涉及Unicorn,所以问题肯定在您的Unicorn配置中。
sudo netstat -nlp | grep ':8080。确认在端口8080上运行的进程是您所认为的。https://stackoverflow.com/questions/34857158
复制相似问题