我正在運行 POC 以在 docker 容器中使用 PHP-FPM FastCGI 在 Nginx 上托管 index.php。我有一個 Nginx 的最低配置,但是當我運行時我無法讓它作業curl -i http://localhost:8080,它在 Nginx 日志中給出了以下類似的錯誤(注意:我只運行了一次 curl 命令):
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
127.0.0.1 - - [23/Jun/2022:19:24:29 0000] "GET /index.php HTTP/1.0" 502 497 "-" "curl/7.29.0" "-"
172.17.0.1 - - [23/Jun/2022:19:24:29 0000] "GET / HTTP/1.1" 502 497 "-" "curl/7.29.0" "-"
2022/06/23 19:30:05 [error] 12#12: *4085 open() "/usr/share/nginx/html/version" failed (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "GET /version?timeout=32s HTTP/1.1", host: "localhost:8080"
Dockerfile
FROM nginx:stable-alpine
WORKDIR /usr/share/nginx/html
RUN apk update && apk upgrade
RUN apk add openrc php php-fpm
COPY index.php /usr/share/nginx/html/
# this is near to the default config provided by Nginx
COPY default.conf /etc/nginx/conf.d/
# entrypoint script runs php-fpm first then nginx
COPY entrypoint.sh entrypoint.sh
# copying this as I have made modifications to enable logs of php-fpm
COPY php-fpm.conf /etc/php8/php-fpm.conf
CMD ["sh", "entrypoint.sh"]
入口點.sh
#!/usr/bin/env sh
set -e
php-fpm8 -D
nginx -g 'daemon off;'
nginx.conf
server {
listen 80;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.php;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
location ~ \.php$ {
proxy_pass http://127.0.0.1;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
索引.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PHP - Hello, World!</title>
</head>
<body>
<h1><?php echo 'Hello, World!'; ?></h1>
</body>
</html>
我試圖提供給 /usr/share/nginx/html 的 nginx 用戶權限,chown -R nginx:nginx /usr/share/nginx/html但它也沒有用。
最后,我正在使用以下命令構建和運行 docker:
docker build -t my-php .
docker run -d -p 8080:80 --name my-php my-php
我知道我在做一些非常基本的錯誤,但一直在努力解決這個問題,但找不到根本原因,日志也無濟于事。
注意:是的,我希望 nginx 和 php-fpm 在同一個影像中,現在我不打算使用主管,因為我正在尋找當前問題的解決方案。
更新 1:
正如@Daniele Rugginenti 在評論中指出的那樣,我在 nginx 中有一些錯誤配置,因此請求正在回圈
---
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
---
在評論第一部分之后,當再次嘗試卷曲時,我得到以下回應:
HTTP/1.1 404 Not Found
Server: nginx/1.22.0
Date: Thu, 23 Jun 2022 21:10:23 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/8.0.20
File not found.
容器日志如下:
2022/06/23 21:10:23 [error] 13#13: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.17.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost:8080"
172.17.0.1 - - [23/Jun/2022:21:10:23 0000] "GET / HTTP/1.1" 404 27 "-" "curl/7.29.0" "-"
uj5u.com熱心網友回復:
最后一個錯誤通常與
script filename
路徑錯誤
嘗試使用默認配置:
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/495825.html
