2016-07-30 102 views
0

我有一个默认的LibreNMS安装在运行nginx的新的Debian Jessie服务器上,但默认的着陆页(因为没有其他虚拟主机)只显示一个空白页面。在/ etc/nginx的/网站可用/默认我的nginx的配置就像是:Nginx的默认librenms PHP页面空白

server { 
    listen 80 default_server; 
    listen [::]:80 default_server; 

    server_name _; 
    root  /opt/librenms/html; 
    index  index.php; 
    access_log /opt/librenms/logs/access_log; 
    error_log /opt/librenms/logs/error_log; 
    location/{ 
      try_files $uri $uri/ @librenms; 
    } 
    location ~ \.php { 
      fastcgi_param PATH_INFO $fastcgi_path_info; 
      include fastcgi_params; 
      fastcgi_split_path_info ^(.+\.php)(/.+)$; 
      fastcgi_pass unix:/var/run/php5-fpm.sock; 
    } 
    location ~ /\.ht { 
      deny all; 
    } 
    location @librenms { 
      rewrite api/v0(.*)$ /api_v0.php/$1 last; 
      rewrite ^(.+)$ /index.php/$1 last; 
    } 
} 

-t通过nginx的,并没有在/opt/librenms/logs/error_log,只是显示我从/opt/librenms/logs/access_log访问浏览器的入口。 netstat显示监听端口80上的nginx。我错过了什么?

回答

0

我从来没有得到Nginx的工作,但切换到Apache2.4并得到它在10分钟内工作。