AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] PHP安装提示成功 但是访问404页面的解决(php-5.2) |
|
---|---|
kidvoodoo |
kidvoodoo 发表于 2014-01-05 18:38:34
OpenVZ的VPS 安装PHO5.2后提示安装成功 但是切换后404界面 看了看配置文件 默认变量设置问题解决方法 修改fastcgi_param
具体如下 : fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; fastcgi_param HTTPS $https; # PHP only, required if PHP was built with --enable-force-cgi-redirect fastcgi_param REDIRECT_STATUS 200;
点赞,加油! (0分)
2014-01-05 18:38:34 1
|
ali |
目测你没认真看php5.2那帖子的使用说明。
回复
2014-01-05 18:46:42 2
|