我有apache作为后端和nginx作为前端。 有些内容由Apache(HTTP Auth)进行密码保护。
当我直接访问它 – 一切工作正常,bur当我尝试通过nginx – 似乎nginx不会转发或caching来自Apache的响应。 所以在nginx日志里面我看到:
89.21.92.0 - - [17/May/2012:22:13:42 +0200] GET / HTTP/1.1 | upstream_address xxxx:80 | upstream_status 401 | upstream_response_time 0.026 | msec 1337285622.757 | request_time 0.026 89.21.92.0 - zentavr [17/May/2012:22:13:44 +0200] GET / HTTP/1.1 | upstream_address - | upstream_status - | upstream_response_time - | msec 1337285624.151 | request_time 0.000
在Apache方面:
yyyy - - [17/May/2012:22:13:42 +0200] "GET / HTTP/1.0" 401 652 "-" "Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0" "89.21.92.0"
可能是什么问题?