nginx报错:Sorry, the page you are looking for is currently unavailable

  • PHP二次开发
  • 2014-5-12 05:33
  • PHP二次开发网
  • 阅读(12849)
  • 评论(0)
  • 摘要: 完整报错信息:Sorry, the page you are looking for is currently unavailable.Please try again later.If you are the system administrator of this resource then you should check theerror log for details.Fa ...
    完整报错信息:

     Sorry, the page you are looking for is currently unavailable.
    Please try again later.
    If you are the system administrator of this resource then you should check theerror log for details.
    Faithfully yours, nginx.

    最终解决办法:

    因为服务器配置的是多站点,最后发现是多站点配置信息有误,正确的配置信息如下:

    [代码]bash代码:

    server {
            listen  80;
            server_name  86m.sdjtaq.cn;#这里是站点url
    
            location / {
                root   /home/www/jtmobile;#这里是站点根目录
                index  index.php index.html index.htm;#这里设置站点默认文档
            }
    
            error_page   500 502 503 504  /50x.html;
            location = /50x.html {
                root   /usr/share/nginx/html;
            }
    
           # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
            location ~ .php$ {
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /home/www/jtmobile/$fastcgi_script_name;
                include        fastcgi_params;
            }
    
            location ~ /.ht {
                deny  all;
            }
    }





    PHP技术交流QQ群:422137578

    除非注明,文章均为 PHP二次开发 原创,转载请注明本文地址:http://www.php2.cc/article-1399-1.html

    相关阅读

    最新评论

    用户名:  *

    邮 箱:  *

    网 址: 注意加上“http://”哦!