1
回答
按照你的方法配置完成后访问,是空白页
百度AI开发者大赛带你边学边开发,赢100万奖金,加群:418589053   

下载版本:phpHiveAdmin-0.10.1-BlackWingLair

nginx配置:
server{
  listen 80;
  server_name demo.phphiveadmin.test.com;
  root /var/web/phphiveadmin.test.com;
  index index.php;
    location ~ .*\.(php|php5)?$ {
          #root /usr/local/nagios/share;
          fastcgi_pass 127.0.0.1:9000;
          fastcgi_index index.php;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          fastcgi_param HTTP_ACCEPT_LANGUAGE zh-cn;
          include /etc/nginx/fastcgi_params;
          #auth_basic "Nagios Login pain";
          #auth_basic_user_file /etc/nginx/htpasswd;
    }
}

访问地址:http://demo.phphiveadmin.test.com/ 是白页。

怎么回事


举报
lvosc3mc
发帖于5年前 1回/265阅
共有1个答案 最后回答: 5年前
server{ 
  listen 80; 
  server_name demo.phphiveadmin.test.com; 
  root /var/web/phphiveadmin.test.com; 
  location / {
            root   /var/web/phphiveadmin.test.com;
            try_files $uri $uri/ /index.php;
            index  index.html index.htm index.php;
        }
 
    location ~ .*\.(php|php5)?$ { 
          fastcgi_pass 127.0.0.1:9000; 
          fastcgi_index index.php; 
          fastcgi_param SCRIPT_FILENAME /var/web/phphiveadmin.test.com$fastcgi_script_name; 
          include /etc/nginx/fastcgi_params; 
    } 


try this conf above

顶部