男的舔女的下面视频在线播放-少妇愉情理仑片高潮日本-久久久久久国产一区二区三区-麻豆精品一区二区综合-国产精品超碰在线观看-网红极品女神精品视频在线-国产亚洲综合777-高清性视频一区二区播放-中文字幕第一页亚洲天堂
Discuz! 官方交流社區(qū)
標(biāo)題:
單獨(dú)啟動nginx和phpcgi無法訪問UCenter
[打印本頁]
作者:
fq1798
時間:
2023-6-18 09:18
標(biāo)題:
單獨(dú)啟動nginx和phpcgi無法訪問UCenter
問題需求:
1,點(diǎn)擊 站長 ==》UCenter設(shè)置 后,正常顯示通信成功
2,window環(huán)境
問題描述:
1,用apache 部署 -正常
2,用phpstudy_pro 啟動nginx(會自動啟動 php-cgi) - 正常
3,curl -X POST http://localhost/upload/uc_server/index.php?__times__=1 我嘗試用命令 竟然可以請求通。 - 正常
3,手動啟動nginx 和 php-cgi.exe -b 127.0.0.1:9899 -c php.ini 后 - 連接不通,nginx提示錯誤如下:手動啟動的時候,都是在window環(huán)境下 以管理員的身份運(yùn)行的。
2023/06/18 08:02:05 [error] 13016#24968: *4 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "POST /upload/uc_server/index.php?__times__=1 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"
復(fù)制代碼
問題:
1,求大佬指點(diǎn),問題出在那里
作者:
fq1798
時間:
2023-6-18 09:25
nginx 配置 我覺得是沒問題的。
server {
listen 80;
server_name localhost;
root "D:/app/Apache24/htdocs";
location / {
# index index.php index.html;
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/index.php /index.php?$query_string;
error_page 400 /error/400.html;
error_page 403 /error/403.html;
error_page 404 /error/404.html;
error_page 500 /error/500.html;
error_page 501 /error/501.html;
error_page 502 /error/502.html;
error_page 503 /error/503.html;
error_page 504 /error/504.html;
error_page 505 /error/505.html;
error_page 506 /error/506.html;
error_page 507 /error/507.html;
error_page 509 /error/509.html;
error_page 510 /error/510.html;
include D:/app/Apache24/htdocs/nginx.htaccess;
autoindex off;
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
復(fù)制代碼
作者:
fq1798
時間:
2023-6-18 14:54
已解決:送給需要的朋友:
1,問題的具體出錯點(diǎn)是:client.php 中的curl_exec方法
2,問題依據(jù)參考:http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_split_path_info
3,注意修改nginx的配置,具體如下:
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info/index.php;
復(fù)制代碼
作者:
false001
時間:
2023-6-19 15:29
樓主,你的nginx用的是哪個版本的?印象中高版本的nginx都支持pathinfo的
作者:
fq1798
時間:
2023-7-8 08:02
false001 發(fā)表于 2023-6-19 15:29
樓主,你的nginx用的是哪個版本的?印象中高版本的nginx都支持pathinfo的
用的是最新版本的3.5.x; 其實(shí)主要還是環(huán)境的問題用寶塔或者phpStudyPro 輕松可以搞定的。
只是我對其中的細(xì)節(jié)還想再琢磨一下
歡迎光臨 Discuz! 官方交流社區(qū) (http://m.sdtechgong.com.cn/)
Powered by Discuz! X5.0