nginx報錯:Sorry, the page you are looking for is currently unavailable

  • PHP二次開發
  • 2014-5-12 05:33
  • PHP二次開發網
  • 閱讀(15158)
  • 評論(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.fujvln.live/article-1399-1.html

    相關閱讀

    最新評論

    用戶名:  *

    郵 箱:  *

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