(php5.6.28 / nginx1.8)
```
2016/11/27 21:55:11 [emerg] 27039#27039: host not found in upstream "upload_backend" in /etc/nginx/nginx.conf:44
2016/11/27 21:55:41 [warn] 4208#4208: *8245 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000004, client: 203.135.238.100, server: localhost, request: "POST /vdata/video_uploading.php HTTP/1.1", host: "210.152.8.39", referrer: "http://210.152.8.39/vdata/index.html"
```
参考までにnginx.conf(キャプチャ)を添付致します。
エラー内容としては「upload_backendが見つからない」と言うものです。
これは実際にこのホスト名で運用する予定ですか?
hostsにちゃんと登録されていて、nslookupかdigなどで(サーバで)引ける状態か確認してください。
もし引けないならアンダースコアが原因かもしれません。
本来ホスト名にアンダースコアは使えませんので、ハイフンに変えてはどうでしょうか。
nginx.conf で proxy_request_buffering off にしてあってもhttpsの設定でSPDYが有効になっていると proxy_request_buffering が無効にならない、といったことがあるようですが。
nginxのリクエストボディのバッファリングに関する問題とその改善策 - Qiita
コメント(0件)